Function createSpriteFrameAnimation
-
createSpriteFrameAnimation(
target: SpriteAnimationTarget,
from: number,
to: number,
loop: boolean,
delayMs: number,
options?: PlaySpriteAnimationOptions,
): SpriteFrameAnimationParameters
- target: SpriteAnimationTarget
Sprite the animation drives.
- from: number
First frame index of the range.
- to: number
Last frame index of the range; may be less than
fromto play in reverse. - loop: boolean
When
true, the animation restarts after reachingto. - delayMs: number
Delay in milliseconds between frame steps.
Optionaloptions: PlaySpriteAnimationOptionsOptional end callback and removal behaviour.
Returns SpriteFrameAnimation
The new animation, not yet attached to any manager.
- target: SpriteAnimationTarget
Creates a sprite frame animation and immediately shows its first frame.