Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8028763
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T00:13:16+00:00 2026-06-05T00:13:16+00:00

Hello everybody I am developing a game with starling and i want to set

  • 0

Hello everybody I am developing a game with starling and i want to set a timer for example every 2 sec i want something to happen.
I used the juggler elapsed prop but i wonder is there a more effecient way to do that

thank you,

Khaled

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T00:13:19+00:00Added an answer on June 5, 2026 at 12:13 am

    If this does not relate to animation, it is recommended to use a Timer for non-animated content.

    Timer implementation would be higher performance than additional time calculations on enter frame handler.

    If you are advancing Starling Jugglers, you can set the frame rate of the Juggler to every 2-seconds.

    Jugglers also have delayCall in which you could infinitely loop every 2-seconds if your functor redundantly called delayCall:

    juggler.delayCall(functor, 2.0);
    

    To tie in to Starlings frame / render lifecycle, you can test time since your last call.

    private var lastCallTime:int
    
    protected function frameHandler():void
    {
        var now:int = getTimer();
        var ellapsed:int = now - lastCallTime;
        if(ellapsed >= 2000)
        {
            /* execute implementation */
            lastCallTime = now;
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello, everybody. We are developing an iPhone app which supported by a server-side that
My string contain a lot of HTML entities, like this "Hello <everybody> there" And I want
Hello everybody i have variable(widthPercent) where i store percent for example: 67.33% when i
Hello everybody and thanks for your time. I'm developing some kind of monitoring application
Hello Everybody now i working with JSF 2.0 and EJB3 and i used Primefaces
Hello everybody How can I add something in my div (something like a banner)
Hello everybody i want to split text and get value How i can get
[Joomla->2.3.2 Virtuemart 2.1] Hello everybody I am currently developing a fast webservice webapp to
Hello everybody I am drawing dynamic table and I want to add header for
Hello Everybody there. I wanna know if there is a command of set of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.