You save the state of the game. You then exit, re-enter and load the save state, it loads it at the time when you saved it with the same variables and objects. It is like taking a screenshot of the game at the point where you saved it.
i have ONLY one instance variable that is value 0 from default, when Player beat the final boss, an event set that instance variable value to 1, then ending video, then go to MENU (i put those events on menu sheet of the game, on start of layout -> save state slot action, on an event below, on saving slote complete -> load state), on the menu if the instance variable is 1 the time attack mode is available, otherwise not.
So practically if i complete the game, when returns to the menu the time attack mode will be available and unlocked and the isntance variable from then on should always be saved as 1.
what im wrong??