* add an animation * For fixed-sized cell sprite sheet, the index list must follow the * logic as per the following example : * * @param {string} name - animation id * @param {number[]|string[]|object[]} index - list of sprite index or name
(name, index, animationspeed)
| 517 | * this.setCurrentAnimation("stand"); |
| 518 | */ |
| 519 | addAnimation(name, index, animationspeed) { |
| 520 | return this._frameAnim.addAnimation(name, index, animationspeed); |
| 521 | } |
| 522 | |
| 523 | /** |
| 524 | * set the current animation |
no outgoing calls