Jump to content

Elapsed function ?


Recommended Posts

there is :


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


  • Recently Browsing   0 members

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