Problems with Loading
by Sharam Namdarian · in iTorque 2D · 05/31/2011 (10:16 pm) · 3 replies
Hey guys, I am new to programming and new to iTorque
I have scoured the forums and I still am unable to figure this out.
Essentially I just want
sceneWindow2D.loadLevel("game/data/levels/Splash.t2d");
to work and when the function is called in the console it comes up with the appropriate datablocks, but it is still the same scene.
I have tried unloading the previous level, but nothing seems to work.
Also, is there a way to stop an Exec script from being called?
I have scoured the forums and I still am unable to figure this out.
Essentially I just want
sceneWindow2D.loadLevel("game/data/levels/Splash.t2d");
to work and when the function is called in the console it comes up with the appropriate datablocks, but it is still the same scene.
I have tried unloading the previous level, but nothing seems to work.
Also, is there a way to stop an Exec script from being called?
About the author
#2
My main issue was in the console it would come up as if it loaded, but nothing would change on the screen.
In the end I discovered that I had to set the content of the canvas to sceneWindow2D
Thanks again!
06/01/2011 (5:05 pm)
Thanks Juntaou, but I figured it out. I am not that new that I don't know about commenting.My main issue was in the console it would come up as if it loaded, but nothing would change on the screen.
In the end I discovered that I had to set the content of the canvas to sceneWindow2D
Thanks again!
#3
get OUTTA town!
06/01/2011 (5:12 pm)
Quote:
/*
sceneWindow2D.loadLevel("game/data/levels/Splash.t2d");
*/
if you want to comment out many lines at once.
get OUTTA town!
Torque Owner Juntaou
sceneWindow2D.loadLevel("game/data/levels/Splash.t2d");
you would just change it to this...
//sceneWindow2D.loadLevel("game/data/levels/Splash.t2d");
or
/*
sceneWindow2D.loadLevel("game/data/levels/Splash.t2d");
*/
if you want to comment out many lines at once.