The instance toolkit contains a set of scripts to work with hierarchies of instances in the easiest and cleanest way possible. You can use the scripts and object provided to build your own GUI system, to easily save and load instances with all required variables or simply to serialize an instance using JSON and send and receive it over a network.


  • Easily add, remove and move child instances and hierarchies
  • Inherit properties defined in parent objects
  • Load and save instance hierarchies, including inherited properties of all parent objects
  • JSON support, allowing for serialization of instances
  • Helper scripts for loading and saving GM's built-in instance variables
  • Debug script for displaying an instance tree, including instance properties
  • Clean, well-commented code
  • Extensive documentation, including examples of use: simple, loading/saving & JSON, advanced

Scripts usage

// Create and destroy instances
with(instance) itk_instance_create(x,y,obj_object);    // automatically assigns to calling instance
with(instance) instance_destroy();                     // destroy full instance tree

// JSON encode/decode
var json = itk_json_encode(instance);
var instance = itk_json_decode(json);

// Getting/setting properties using custom events
itk_props[?"x"] = x;    // Get an instance's properties => itk_get_event
itk_props[?"y"] = y;

x = itk_props[?"x"];    // Set an instance's properties => itk_set_event
y = itk_props[?"y"];

// Executing scripts
with(instance) {

Known bugs


Updates/new feature additions

Will be added for free on request.



Questions, suggestions, remarks

Please feel free to let me know using the Contact Publisher button.

End User Licence Agreement (EULA).

Changes in 2.1.0

  • Converted to GameMaker Studio 2
  • Converted constants to macros

Version 2.1.0. Published September 24, 2017

Age Rating: 4+

Average Rating

This asset hasn't received enough reviews yet.

Your review

You can only review assets you've bought.


Anonymous 27 January 2017

2nd room crashes in current version of GMS

2nd room crashes in current version of GMS

This review was left for a previous version of this asset.


Bart Teunis (Publisher) 01 April 2017

Hi. Which is the precise GMS version you tested this with?

Package contents

Loading, please wait

What is the issue?

Back to Top