Jump to content

Elapsed function ?


Arlefreak
 Share

Recommended Posts

there is :

game.time.elapsed

but it's not being updated in the current version of Phaser. In the meantime what you can do is to use:

jumpStart = game.time.now;

this will give you the time at the start of the jump, and:

_jump = game.time.elapsedSince(jumpStart)

will give you the elapsed time since the start of the jump. I believe it has the same effect of "_jump += FlxG.elapsed;"

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...