Sprite Manager
The Sprite Manager is where you import sprite sheets and define the named animations that bring characters and objects to life.
Importing a Sprite Sheet
- Click + Add Sprite Sheet.
- Either upload an image (PNG or JPG) or use AI Generate to create one from a text prompt (requires OpenAI key in Settings).
- Enter a name for the sheet.
- Set the grid dimensions:
- Rows and Cols — how many rows and columns your sprite sheet is divided into.
- Frame width and height are calculated automatically from the sheet dimensions.
- CAPAB slices the sheet into frames numbered left-to-right, top-to-bottom (frame 0 is top-left).
Sprite Sheet Properties
| Property | Description |
|---|---|
| Name | Identifier used in Character Editor and Scene Editor |
| Rows / Cols | Grid layout of the sheet |
| Frame Width / Height | Auto-calculated; read-only |
| Total Frames | rows × cols |
Defining Animations
Each sprite sheet can have multiple named animations. An animation is a contiguous range of frames.
Creating an Animation
- Select a sprite sheet.
- Click + Add Animation.
- Fill in:
- Name — e.g.,
walk-down,idle,attack - Start Frame — index of the first frame (0-based)
- End Frame — index of the last frame (inclusive)
- FPS — playback speed in frames per second
- Loop — whether the animation restarts after the last frame
- Name — e.g.,
Previewing an Animation
The preview panel plays the animation in real time. Use it to verify frame ranges and speed before assigning to a character.
Assigning Animations to Characters
Once animations are defined, go to the Character Editor and assign them per direction:
- Select a Sprite Sheet from the dropdown.
- Select an Animation from that sheet.
- Repeat for each of the four directions (up / down / left / right).
The game runtime automatically selects the correct animation based on the character’s current movement direction.
AI Sprite Generation
In the Sprite Manager, click AI Generate to open the generation modal.
- Type a prompt describing the sprite or character you want.
- Press Generate (or Ctrl + Enter).
- The generated image is added directly to the Sprite Manager as a new sheet.
- Adjust the row/col grid to slice it correctly.
See Settings to configure your OpenAI API key.