How to load next scene if all enemys was killed?
by Burak Esen · in Torque X 2D · 10/05/2011 (7:59 pm) · 2 replies
Hey guys,
i want to load next scene if the player has killed all enemys but i dont know how to code this.
Have you examples for me?
i want to load next scene if the player has killed all enemys but i dont know how to code this.
Have you examples for me?
#2
10/07/2011 (12:46 pm)
Game.Instance.SceneLoader.UnloadLastScene(); //unload last scene Game.Instance.SceneLoader.Load(@"data\levels\level2Data.txscene"); //load a new scene
Associate Andy Hawkins
DrewFX
http://www.garagegames.com/community/forums/viewthread/55645/1#comment-421351
Also keep a track of the number of enemies when you create them. Reduce this number when each one is killed. Then when the count is zero end the level and load the next one.