* set the current animation * this will always change the animation & set the frame to zero * @param {string} name - animation id * @param {string|Function} [resetAnim] - animation id to switch to when complete, or callback * @param {boolean} [preserve_dt=false] - if false will reset the ela
(name, resetAnim, preserve_dt = false)
| 558 | * }); |
| 559 | */ |
| 560 | setCurrentAnimation(name, resetAnim, preserve_dt = false) { |
| 561 | this._frameAnim.setCurrentAnimation(name, resetAnim, preserve_dt); |
| 562 | return this; |
| 563 | } |
| 564 | |
| 565 | /** |
| 566 | * reverse the given or current animation if none is specified |
no outgoing calls
no test coverage detected