Phaser API Documentation

  Version: 
play(key, [ignoreIfPlaying], [startFrame])

Description:

Start playing the given animation.

Parameters:

name type arguments Default description
key string

The string-based key of the animation to play.

ignoreIfPlaying boolean <optional> false

If an animation is already playing then ignore this call.

startFrame number <optional> 0

Optionally start the animation playing from this frame index.

Returns:
Description:

This Game Object.

Since: 3.23.0