A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: The game that goes on and on

  1. #1
    Junior Member
    Join Date
    Jul 2001
    Posts
    2
    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 !

  2. #2
    Member
    Join Date
    Oct 2001
    Posts
    44

    Arrow

    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



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center