1. Hey! Guest! The 36th GMC Jam will take place between February 27th, 12:00 UTC - March 2nd, 12:00 UTC. Why not join in! Click here to find out more!
    Dismiss Notice

Using Destroy event when saving a variable

Discussion in 'Programming' started by Bernard Polman, Feb 1, 2017.

  1. 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?
  2. CoderJoe

    CoderJoe Member

    Jun 22, 2016
    Not sure. I do know you could use room end event though or game end for exiting the game.
  3. TimothyAllen

    TimothyAllen Member

    Aug 7, 2016
    No. Not in 1.4 any way. Can't say for 2.0

Share This Page