SpriteDataClipOptions
A clip a data sheet’s game plays: {} takes the file’s tag of the
same name, and frames declare one of the game’s own.
Properties
Section titled “Properties”| Property | Type | Default value | Description |
|---|---|---|---|
direction? |
ClipDirection |
ClipDirection.Forward |
Plays the frames, or the tag’s, backwards. |
durationSeconds? |
number | readonly number[] |
undefined |
Seconds each frame shows, one for all or one for each. Left out, the file’s own durations. |
frames? |
readonly (string | number)[] |
undefined |
The frames in play order, by index or by the file’s frame name. Left out, the file’s tag of the clip’s name. |
loop? |
ClipLoopMode |
undefined |
How the clip repeats. Left out, the tag’s own, or ClipLoopMode.Loop for declared frames. |
marks? |
Readonly<Record<string, number | readonly number[]>> |
undefined |
Marks by position in frames, such as { hit: 2 }, or { footstep: [1, 3] } for one on two frames. |