Quirky load / save issue [SOLVED]

Started by LeChuck, Mon 05/05/2008 04:25:30

Previous topic - Next topic

LeChuck

I've got my own little save and loadgame menus all set up nicely. After I press save, all menus disappear. To let the player know it was a successful save, I've added a GUI with a camera and the text "game saved" that animates in the corner of the screen with a flash sound. It works brilliantly. However, when I load that savegame, the same camera makes another appearance, which makes sense seeing as the game continues right where it left off.

To stop this camera from animating another time after loading, now that's a tricky one. Is it doable? I can't quite find some piece of code or function to detect whether or not the game was just loaded or not. My best guess is to interrupt this GUI by turning it off via repeatedly_execute_always in the main global script... But then again, how to detect it?  ???

Khris

Display the camera icon inside on_event() / eEventRestoreGame.

LeChuck

#2
Damnit, sometimes I just wanna knock my head into the wall. Thanks KhrisMUC!

Edit: Actually, I used the eEventRestoreGame to interrupt and turn off the camera GUI seeing as it should only be displayed after you have saved, not loaded. Works like a charm.

SMF spam blocked by CleanTalk