Header menu logo Mibo

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

Fps

Full Usage: Fps

Field type: float32

Frames per second.

Field type: float32

FrameCount

Full Usage: FrameCount

Field type: int

Number of frames in this animation.

Field type: int

Loop

Full Usage: Loop

Field type: bool

Does this animation loop?

Field type: bool

Name

Full Usage: Name

Field type: string

Name of the animation (e.g., "idle", "walk").

Field type: string

Row

Full Usage: Row

Field type: int

Row in the sprite sheet (0-indexed).

Field type: int

StartCol

Full Usage: StartCol

Field type: int

Starting column in the row (0-indexed).

Field type: int

Type something to start searching.