• 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!

Using Destroy event when saving a variable

B

Bernard Polman

Guest
I have a simple object (not persistent) that loads a variable on Create event with scr_loadgame(). I need my variable to be saved when the game ends or players enters a new room (I have scr_savegame() for that). The variable is global.

If I save the game in Destroy event of that object, will the Destroy event be executed when the player enters a new room or closes the game?
 
C

CoderJoe

Guest
Not sure. I do know you could use room end event though or game end for exiting the game.
 
Top