SpriteAnimation
CReate a new SpriteAnimation
Properties
name(string) — Name of the animationframeRate(integer) — Frames per second the animation should play atframeList(dynamic) — Array of the regions of the each cell of this animationplayMode(SpritePlayMode) — Play mode for the sprite: loop, forward, reverse, pingpong
Constructor
new SpriteAnimation(
name: string,
frameList: dynamic,
frameRate: integer,
playMode?: SpritePlayMode,
): SpriteAnimationParameters
name(string) — Name of the animationframeList(dynamic) — Wither an array of cell indexes, or an object {startFrame, frameCount}frameRate(integer) — Frames per second the animation should play atplayMode(SpritePlayMode, optional, default: "SpritePlayMode.Loop") — Play mode for the sprite: loop, forward, reverse, pingpong