0 Replies Latest reply on Mar 26, 2008 10:52 AM by patrickepeterson

    use timer to stop game?


      I'm working on a space-shooter like video game (I used a tutorial to construct it) but I'm having some real trouble figuring out how to end the game. I'd like for a user to play for a given amount of time (20 seconds, for instance) and then if they haven't been killed to go to the win screen. I've tried to deploy a timer and then included a function that goes to the next scene when the time has elapsed, but that doesn't seem to work at all. I'm not sure what I'm doing wrong here. The .fla can be found HERE.

      Here's the actionscript for the whole game. I also created an engine to drive the timer, that code is appended below the main actionscript. Any ideas?