GridAnimationDef Type
Definition for an animation in a grid-based sprite sheet.
Use this with SpriteSheet.fromGrid for self-documenting animation definitions.
Record fields
| Record Field |
Description
|
Full Usage:
Fps
Field type: float32
|
Frames per second.
|
Full Usage:
FrameCount
Field type: int
|
Number of frames in this animation.
|
Full Usage:
Loop
Field type: bool
|
Does this animation loop?
|
Full Usage:
Name
Field type: string
|
Name of the animation (e.g., "idle", "walk").
|
Full Usage:
Row
Field type: int
|
Row in the sprite sheet (0-indexed).
|
Full Usage:
StartCol
Field type: int
|
Starting column in the row (0-indexed).
|
Mibo