Phaser API Documentation

  Version: 
setProgress([value])

Description:

Takes a value between 0 and 1 and uses it to set how far this animation is through playback.

Does not factor in repeats or yoyos, but does handle playing forwards or backwards.

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.

Parameters:

name type arguments description
value number <optional>

The progress value, between 0 and 1.

Returns:
Description:

The Game Object that owns this Animation Component.

Since: 3.4.0