I've been experimenting with a "Main Menu" feature in my game, currently, when you're in game, hitting the Main Menu button runs the "game_restart();" function.
The only problem is, that doesn't seem to restart the game like I'm wanting it to, what I want it to do is when you hit Main Menu, have it restart the game as if you were just initially launching the .exe, so all the variables go back to how they are every time you launch the .exe
Occasionally this system seems to leave variables in there, like having my nextroom variable set to an in-game room, so when the menu fades from the intro to the actual menu, it fades to said in-game room.
Any help is greatly appreciated,
Thanks,
Anselm.
Edited by anselm, 15 September 2011 - 09:59 PM.











