add(name, frames, frameRate, loop, useNumericIndex) → {Phaser.Animation}
Adds a new animation under the given key. Optionally set the frames, frame rate and loop.Animations added in this way are played back with the play function.
Parameters
Name Type Argument Default Description name string The unique (within this Sprite) name for the animation, i.e. "run", "fire", "walk". frames Array <optional> null An array of numbers/strings that correspond to the frames to add to this