-
I can't seem to find away to make a level in my game end....you see, I was thinking of it going to the next level
once you killed so many guys or when the timer reaches Zero..But i don't know how to do this...If you know how of got another suggestion...please tell me !
-
I don`t know how is your game going, but you can use this:
Place this code in one of your movie clips in the stage when game is running:
Code:
onClipEvent(enterFrame){
// of course if you have the variables defined in _root
// var life=100; (just an example)
// var guys_killed=0;
if ((_root.life == 0) || (_root.guys_killed==100)){
_root.gotoAndPlay("next_level"); // or wherever you want
}
}
this is just an example...
if not, then give more details...
Good Luck
ZeroIQ