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