I'm attempting to implement a global HUD into my game suggested here: scirra.com/forum/forum_posts.asp
I'm trying to load the HUD automatically at the start of each level. It is probably easiest to explain in program form
<font face="Courier New, Courier, mono">
HudLoaded = 0
IF HudLoaded == 0
TURN HUD OFF
HudLoaded = 1
GOTO LEVEL 1
Obviously, this creates a loop. How can I create a global variable that is not reset every time the event sheet it is on is loaded? One solution would be to load globals at the beginning of the game, however this won't work if I am debugging.
How should I approach this?