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()
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! :)
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! :)
Torque Owner Leroy Frederick