* Add an animation, identical to Sprite#addAnimation. * @param {string} name - animation id * @param {number[]|string[]|object[]} index - frame indices / names (see Sprite#addAnimation) * @param {number} [animationspeed] - cycling speed in ms * @returns {number} number of fra
(name, index, animationspeed)
| 363 | * @returns {number} number of frames added |
| 364 | */ |
| 365 | addAnimation(name, index, animationspeed) { |
| 366 | return this._frameAnim.addAnimation(name, index, animationspeed); |
| 367 | } |
| 368 | |
| 369 | /** |
| 370 | * Select the active animation, identical to {@link Sprite#setCurrentAnimation}. |
no outgoing calls