QLNEO

Use physics time in Timer?

Recommended Posts

According to the docs,

Quote

Timers are based on real life time, adjusted for game pause durations. That is, timer events are based on elapsed game time and do not take physics time or slow motion into account.

However, I'm using a countdown-based event, where I'd normally use a Timer, that needs to be applying physics time. How should I approach this?

Share this post


Link to post
Share on other sites

It appears using a tween (applied to nothing) and its onComplete signal does the trick. I had to manually set game.tween.frameBased = true, however.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.