A downloadable asset pack

Download NowName your own price

Many people have been critical about GMS not having constructors and overloads, thus not letting define and set variables for a new instance of an object before that instance runs the create event, thus forcing us to find workarounds.

Worry no more

instance_create_ext() and instance_create_ext_fast() are two scripts I've wrote that allows the user to define and set how many variables he want, like this instance_create_ext_fast(x,y,depth,oBox,"color",c_white,"grav",global.grav,"box_type","Wood")

It also returns the id of the created object if you use the instance_create_ext() script, to do something like
var inst = instance_create_ext(x,y,depth,oPlayer,"alarmTime",random(100)) inst.alarm[0] = inst.alarmTime

And of course, you can use it as a normal instance_create, but without having to define _layer or _depth, as you can use both, because the scripts detects if you put a depth or a layer

Features

  • Define vars before even running the creation event
  • Makes easier the task of sending vars between instances
  • Completely functional. It really looks and works like a built-in function
  • Completely free
  • Completely necessary
  • Fully commented and explained
  • Full support

If you like this and you find it useful (which you probably will if you are at least a middle level user of GML), and you want/can support me, you can check my other assets (maybe my battle ship engine) or leave a buck in my itch.io account! Also, I would be very grateful if you could leave a like and a follow in my facebook page!

Thank you very much.

Love
-Floyd

Download

Download NowName your own price

Click download now to get access to the following files:

instance_create_ext() for GameMaker Studio 2.yyz 19 kB

Leave a comment

Log in with itch.io to leave a comment.