Phaser API Documentation

  Version: 
previousFrame()

Description:

Advances the animation to the previous frame, regardless of the time or animation state. If the animation is set to repeat, or yoyo, this will still take effect.

Calling this does not change the direction of the animation. I.e. if it was currently playing in forwards, calling this method doesn't then change the direction to backwards.

Returns:
Description:

The Game Object this Animation Component belongs to.

Since: 3.16.0