Game Development Community

how do u set up levels? Please help!

by David · in General Game Discussion · 02/27/2013 (7:30 am) · 2 replies

i want my game to go to the next level when ever i kill all the AIs on the current level

#1
03/07/2013 (4:49 pm)
Which version of Torque are you using?

This is pseudo code

All_dead is a (variable/identifier) that tracks the a.i. in your level.
Every time one is killed off you would subtract 1 from the varible such as

All_dead--

The double - sign indicates that 1 is being subtracted.

Finally you would have a section in your code that reads

If All_dead == 0
{
Loadlevel("whatever .mis file you want")
}

I forget the command to load the mission files.

This is assuming that you are using TGE 1.4 - 1.5
#2
03/07/2013 (6:29 pm)
Similar pseudo code will work for all versions of (3D) Torque whether it be TGE, TGEa, or Torque 3D -- script is script.