Phaser API Documentation

  Version: 
getProgress()

Description:

Returns a value between 0 and 1 indicating how far this animation is through, ignoring repeats and yoyos.

The value is based on the current frame and how far that is in the animation, it is not based on the duration of the animation.

Returns:
Description:

The progress of the current animation in frames, between 0 and 1.

Type:
  • number
Since: 3.4.0