• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

GML Does an object contain a constant and unique variable?

O

Orion31

Guest
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