Game Development Community

RC2/RC3?: Crashes on loadScene(), loadLevel() & endLevel()

by Leroy Frederick · in Torque Game Builder · 06/12/2006 (1:36 pm) · 1 replies

I keep getting a crash everytime I call 1 of these three commands:

loadScene(), loadLevel() & endLevel()

function loadTrigger::onEnter(%this, %object)
{
	 if (%object.class $= "Player")
         {
                //mainScene.saveScene("~/data/levels/Test.scn");
   		//mainScene.endLevel();
   		loadScene("~/data/levels/Test.scn");
         }
}

Has any1 been able to successfully use any of thee above commands without problem/or got a work around and if so, info or/and a snippet of code would be more then welcome! :)

#1
06/16/2006 (6:21 am)
I've yet to try this in RC3, so is the function(s) working or was it always working and my code was simply wrong (in which case feel free to show me the errors in my ways :))