* force the current animation frame index. * @param {number} [index=0] - animation frame index * @returns {Sprite} Reference to this object for method chaining * @example * // reset the current animation to the first frame * this.setAnimationFrame();
(index = 0)
| 673 | * this.setAnimationFrame(); |
| 674 | */ |
| 675 | setAnimationFrame(index = 0) { |
| 676 | this._frameAnim.setAnimationFrame(index); |
| 677 | return this; |
| 678 | } |
| 679 | |
| 680 | /** |
| 681 | * return the current animation frame index. |
no outgoing calls
no test coverage detected