Pictures and sprites
Open a .png or an Aseprite picture (.ase) and switch to the
Sprite Editor to draw it. To start a new one, right-click in the file
list and pick New picture…: give it a name and a size, and choose .ase
(frames, layers and tags, for anything that moves) or .png (one still
picture).
Drawing
A walk cycle from Templates…: the colors and tools on the left, the picture in the middle, its three frames along the bottom, and the preview and layers on the right.
The tools are down the side, and each has a key:
| Tools | Keys |
|---|---|
| Pencil, Eraser | B, E |
| Outline, Highlight, Shadow | N, H, D |
| Line, Rectangle, Rounded Rectangle, Circle | L, U, R, O |
| Select, Lasso, Magic Wand, Move | M, S, W, V |
| Fill, Fill Erase, Swap Color, Eyedropper | G, Shift+G, P, I |
| Text, Rotate, Slice | X, T, K |
| Fire, Arc, Strand, Blob, Spray | F, Y, J, Q, A |
Ctrl+Z (Cmd+Z) undoes, and Ctrl+Shift+Z or Ctrl+Y does it again. Copy, cut and paste work on a selection, as everywhere else.
Colors
The palette is the picture’s colors. Click one to draw with it, right-click it to change it, Shift-click to pick a run of them, and Alt-click to take one out. + Add adds a color, and Ramp makes a run of shades between two. Extract takes the palette from the picture itself, Reduce uses fewer colors, and Sort puts them in order.
Load and Save keep palettes as .cbp files. Save one called
default and it’s your game’s palette.
Layers
A picture can be in layers, like sheets of glass on top of each other: the outline on one, the colors under it. Each layer has its own opacity, and can be flipped either way.
Frames, for things that move
Along the bottom of an .ase picture is its timeline, one picture after
another. + Frame adds one and Duplicate copies the one you’re on, to
change it a little. Play plays them, Ping-pong plays them there and
back, and Onion skin shows the frames either side faintly, so you can
see how far each part moves.
A tag names a run of frames, like walk or jump. + Tag makes one,
with how it plays: forward, reverse, ping-pong. Your game can then animate
a sprite by the tag’s name.
Crash-tan’s Tip: Generate Behaviors writes a
BEHAVIORfor each of your tags, one that animates it, and copies them, ready to paste into your code.
Slices
Draw a slice with the Slice tool (K) to mark a part of the picture: a
hitbox, or where a sword goes. Copy BBOX copies it as a BBOX(...) for
SET SPRITE, so a sprite’s hitbox is exactly what you drew.
Somewhere to start
More has the rest:
- Templates…: ready-made walk cycles to start from, facing all four ways.
- Pick a frame from a sheet: use one frame of a sprite sheet.
- Import from outside…, Export PNG… and Export .ase….
- Resize….
Reference puts a picture beside yours to draw from. It isn’t part of your picture, and it isn’t saved with it.
Got a folder of PNGs, one per frame? Pick them all in the file list,
right-click, and Make an Aseprite Animation of N Pictures… makes one
.ase of them, at the speed you choose.