GameMaker [SOLVED] Events?

Neptune

Member
Is there a way (without uniquely identifying an instance), to code an event into it in the room editor creation code?

Like a chunk of code that executes if the player interacts with it (not just on creation)... Specific to that instance.
I'd like to be able to do this WITHOUT uniquely identifying the instance and running a chunk of code in a script somewhere.

I'm thinking its not possible, but its worth a shot! Any info appreciated :)
 

TsukaYuriko

☄️
Forum Staff
Moderator
Make a script, assign that script to a variable in the instance creation code, run it via script_execute whenever you want.

You will be able to use methods over scripts once the GML update hits.
 

Neptune

Member
Hmm alright. So I'd still have to create a bunch of scripts (because in this case there will be a bunch of differing events).

How would a method work?

[EDIT] I think I see, it's like a script, but you can just define it's contents wherever on the fly... That would be awesome, is there an announced ETA for methods?
 
Last edited:
Top