Draw an animation
aseprite_animationDraw multiple animation frames in one call by specifying only changed pixels per frame; automatically copies the previous frame and places reusable stamps.
Instructions
Draws several frames in ONE call, each as a pixel map, creating missing frames automatically. With copyPrevious (default) a new frame starts as a copy of the previous one, so each entry only needs the changed rows (use x/y and '.' to leave pixels unchanged; '.' never erases, map a key to '#00000000' for that). Parts that repeat across frames (head, body …) belong in stamps, placed per frame with place: [name, x, y]. For generated animations write frames/palette/stamps to a .json file and pass file. Returns the sprite status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Absolute path of a .json file: an array of frames, or an object with frames/palette/stamps/duration; inline arguments override it | |
| layer | No | Layer name (default: active layer) | |
| start | No | Frame number of the first entry | |
| frames | No | One entry per frame (required unless file is given) | |
| stamps | No | Reusable pixel maps: {"name": {"rows": [...], "palette"?: {...}}} | |
| palette | No | Palette shared by all frames | |
| duration | No | Default duration of every drawn frame, in seconds | |
| paletteName | No | Name of a palette saved with aseprite_palette | |
| copyPrevious | No | New frames start as a copy of the previous frame |