Phaser API Documentation

  Version: 
startAnimation(key)

Description:

Load the animation based on the key and set-up all of the internal values needed for playback to start. If there is no delay, it will also fire the start events.

Parameters:

name type description
key string | Phaser.Types.Animations.PlayAnimationConfig

The string-based key of the animation to play, or a PlayAnimationConfig object.

Returns:
Description:

The Game Object that owns this Animation Component.

Since: 3.50.0