Totemi1324
Member
Hello,
I have a decent, but important problem when trying to communicate with unique instances in my game. I could use the ID of course (stored in variable
So my question is: Is there a way to get the unique instance identifier of an instance with code?
Thanks for your help in advance!
I have a decent, but important problem when trying to communicate with unique instances in my game. I could use the ID of course (stored in variable
id
), but this is not static and changes if I add any nex instances to the layer. There is however this instance identifier thing, for example inst_214A6FAD
which can be seen in the Instances Layer Properties. I searched whole Google but could not find an answer how to get this identifier in the code, isn't there some built-in variable where I can read this value from? I need this for applications like:
GML:
with (collision_rectangle(x, y, x + 10, y + 10, oWall, false, false)) {
if ([SEARCHED_VARIABLE] == inst_214A6FAD) //do something...
}
Thanks for your help in advance!