sprite_animation
6 public commands in this category.
create_sprite_anim_clip
Create a named animation clip from sprite sheet frames
Scope:
scene:write. Token cost: 1.- clipName string (required)
- Name of the animation clip
- entityId string (required)
- Entity with an existing sprite sheet
- frames array (required)
- Frame indices to include
- fps number (optional)
- Frames per second (default 12)
- looping boolean (optional)
- Whether to loop the animation (default true)
play_sprite_animation
Start playing an animation clip on a sprite
Scope:
scene:write. Token cost: 0.- clipName string (required)
- Name of clip to play
- entityId string (required)
- Entity with an existing sprite animator
set_anim_param
Set animation state machine parameter
Scope:
scene:write. Token cost: 0.- entityId string (required)
- Entity with an existing animation state machine
- paramName string (required)
- Parameter name
- value unknown (required)
- Parameter value (boolean or number)
set_anim_state_machine
Configure animation state machine for a sprite
Scope:
scene:write. Token cost: 2.- currentState string (required)
- Starting state name
- entityId string (required)
- Target entity ID
- parameters object (required)
- Map of parameter name to a discriminated {type, value} pair (bool | float | trigger)
- states object (required)
- Map of state name to clip name
- transitions array (required)
- State transitions
set_sprite_animator
Configure sprite animator on an entity
Scope:
scene:write. Token cost: 1.- entityId string (required)
- Target entity ID
- spriteSheetId string (required)
- Sprite sheet asset ID
- currentClip string (optional)
- Initial clip to play
- playing boolean (optional)
- Whether the animator starts playing immediately (default false)
- speed number (optional)
- Playback speed multiplier (default 1.0)
slice_sprite_sheet
Define how to slice a sprite sheet into animation frames
Scope:
scene:write. Token cost: 1.- assetId string (required)
- Asset ID of the sprite sheet image
- entityId string (required)
- Target entity ID
- clips array (optional)
- Animation clips to create from the sliced frames
- sliceMode object (optional)
- Slicing mode (grid or manual); omit to slice as a single manual region