Phaser API Documentation

  Version: 
addFrameAt(index, config)

Description:

Add frame/s into the animation.

Parameters:

name type description
index number

The index to insert the frame at within the animation.

config string | Array.<Phaser.Types.Animations.AnimationFrame>

Either a string, in which case it will use all frames from a texture with the matching key, or an array of Animation Frame configuration objects.

Returns:
Description:

This Animation object.

Since: 3.0.0