Skip to main content
Participating Frequently
February 8, 2014
Answered

How to create a timer with variety?

  • February 8, 2014
  • 1 reply
  • 695 views

Hi!

I'm creating a game and I would like to make some variables to start going faster every 20 seconds. Is it posible with a timer?

This topic has been closed for replies.
Correct answer Ned Murphy

Yes, you can use a Timer to trigger other things to start happening every 20 seconds.  You could have whatever actions you need to make things go faster in the event handler for the Timer.

1 reply

Ned Murphy
Ned MurphyCorrect answer
Legend
February 8, 2014

Yes, you can use a Timer to trigger other things to start happening every 20 seconds.  You could have whatever actions you need to make things go faster in the event handler for the Timer.

Participating Frequently
February 8, 2014

Which class should I use? Or do I need another file for the timer?

Ned Murphy
Legend
February 8, 2014

Use the Timer class.  Search Google using "AS3 Timer tutorial" to get some info on using it.