Game Development Community

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?

#1
06/01/2011 (10:20 am)
if you want something to be ignored you can just comment it out and it will never be called. For example if you wanted to comment out the following line so it was not called.

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.
#2
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
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!