Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to create a timer with variety?

New Here ,
Feb 08, 2014 Feb 08, 2014

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?

TOPICS
ActionScript
615
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Feb 08, 2014 Feb 08, 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.

Translate
LEGEND ,
Feb 08, 2014 Feb 08, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 08, 2014 Feb 08, 2014

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 08, 2014 Feb 08, 2014

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 08, 2014 Feb 08, 2014

Oh that's right I get it. I thought I needed something else.

Thanks!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 08, 2014 Feb 08, 2014
LATEST

You're welcome

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines