* return true if `name` is the currently playing animation. * @param {string} name - animation clip id * @returns {boolean}
(name)
| 234 | * @returns {boolean} |
| 235 | */ |
| 236 | isCurrentAnimation(name) { |
| 237 | return this.current.name === name; |
| 238 | } |
| 239 | |
| 240 | /** |
| 241 | * play the given animation clip. The second argument mirrors {@link Sprite} |