Copy link to clipboard
Copied
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?
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Which class should I use? Or do I need another file for the timer?
Copy link to clipboard
Copied
Use the Timer class. Search Google using "AS3 Timer tutorial" to get some info on using it.
Copy link to clipboard
Copied
Oh that's right I get it. I thought I needed something else.
Thanks!
Copy link to clipboard
Copied
You're welcome
Find more inspiration, events, and resources on the new Adobe Community
Explore Now