Phaser API Documentation

  Version: 
setCurrentFrame(animationFrame)

Description:

Sets the given Animation Frame as being the current frame and applies it to the parent Game Object, adjusting size and origin as needed.

Parameters:

name type description
animationFrame Phaser.Animations.AnimationFrame

The animation frame to change to.

Returns:
Description:

The Game Object this Animation Component belongs to.

Since: 3.4.0