Hi,
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">
GLOBALEVENTS:
HudLoaded = 0
IF HudLoaded == 0
GOTO LOADHUD
LEVEL 1:
IMPORT GLOBALEVENTS
ON LEVEL_END
TURN HUD OFF
LOADHUD:
HudLoaded = 1
GOTO LEVEL 1
</font>
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?