Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Kinoko on Mon 14/03/2005 15:35:14

Title: Performing action after RestoreGame [SOLVED]
Post by: Kinoko on Mon 14/03/2005 15:35:14
In my game, when you save, you're taken to a new room, you choose to save, then are automatically brought back to the previous room (where the actual -saving- takes place). After this happens, I have a GlobalInt changed to make the game run properly.

I've just noticed the problem that when loading a saved game, how can I make sure this GlobalInt gets changed? Is there some way to let the game know it should do something AFTER a save slot has been restored?
Title: Re: Performing action after RestoreGame
Post by: Radiant on Mon 14/03/2005 15:44:53
Sure. Check the docs for on_event (GAME_RESTORE).
Title: Re: Performing action after RestoreGame
Post by: Kinoko on Mon 14/03/2005 15:52:07
Ah, thanks... I'd never noticed that before.