How do you unload a level?
by Jon Jorajuria · in Torque Game Builder · 12/06/2006 (10:36 pm) · 5 replies
Here is the situation...
When my win conditions have been met, my level pauses and then launches a gui and give the user the option to play again. When the user clicks play again, it is as if the level was never unloaded and nothing is reset. I have been trying to use the endgame(); and endLevel(); functions, but I think I am missing something.
When my win conditions have been met, my level pauses and then launches a gui and give the user the option to play again. When the user clicks play again, it is as if the level was never unloaded and nothing is reset. I have been trying to use the endgame(); and endLevel(); functions, but I think I am missing something.
About the author
#2
here is the code:
12/07/2006 (7:13 am)
Yup I did, which is why I am confused.here is the code:
function FailedMissionEnd()
{
sceneWindow2D.endLevel();
loadTransition01Gui();
Canvas.showCursor();
}
#3
12/07/2006 (7:30 am)
Hmm, mind posting your source code? sceneWindow2D.endLevel() should be all you need to call. It works for me at least.
#4
12/07/2006 (7:36 am)
When I reload the game, I lose all controls and nothing is reset. It is really odd behavior.
#5
12/07/2006 (9:13 pm)
Dammit...just stupid mistake on my part, thanks for the help.
Torque Owner Oliver Rendelmann - DerR