• Hey! Guest! The 37th GMC Jam will take place between May 28th, 12:00 UTC and June 1st, 12:00 UTC. Why not join in! Click here to find out more!

GML Does an object contain a constant and unique variable?

Orion31

Member
For example, I am building a game with puzzles, and I need to save the states of each button. Is there a built in property to objects that is unique and will always be the same no matter how many times I close and restart the game, or will I have to give each one a unique number in creation code?
Thanks!
 

TheouAegis

Member
Instances placed in the room using the IDE will have a constant id for the first room (I think). Then even if you go back and forth between rooms, those ids will remain.

Instances created in the IDE also have a built-in constant, but dunno how you save via that constant.

Instances added via code have nothing constant about them.
 
Top