Game Development Community

adding level

by Retchel · in Torque Game Builder · 03/09/2010 (4:54 am) · 1 replies

We are creating an interactive science quiz game for elementary students. We use whack a mole in answering the questions and the answer of the question should be correct in order to load into the next level. My problem is how can i add new game level and where should i call the code in order it will load to the next level.

#1
06/19/2010 (10:52 pm)
To add new game levels, go to the level editor and press create new scene. Then from there you can drop in objects and edit there setting( such as position, rotation, class, etc.). To load a level in script do this command
sceneWindow2D.schedule(20,"loadLevel","game/data/levels/LevelName.t2d");
you should call this in your code where it checks to see if the answer is correct. I hope this helps.