Black Week: −40% Pixor is $19.99 $11.99 until 2 December, on itch.io →

How to animate pixel art

Pixel art animation is a few small pictures shown one after another, each held for a moment. Here is how to plan, draw and time them so a sprite a few dozen pixels tall reads as alive, which animations a game needs, how many frames each takes, and when it pays to start from a 3D model instead of a blank canvas.

A walk: 12 frames, looping
A prop: a chest opening
A pickup: a coin spinning
A pixel-art crystal golem jumping, seen from the side, with even, stiff timing
Even timing: every frame the same length
The same golem jump with a deeper wind-up, arms swinging past and a squash on landing
Wind-up, overshoot and squash: the same jump, alive

How pixel art animation works

An animation is a short list of frames. The game shows one, holds it for a few hundredths of a second, then shows the next; a loop goes back to the first. Because a sprite is small, every pixel that changes is a big part of the movement, so pixel animation is about choosing which few pixels move, and when.

Three ideas carry over from all animation:

  • Key poses tell the story: the contact and passing poses of a walk, the wind-up and strike of an attack.
  • In-betweens go from one key pose to the next. In pixel art there are very few of them, often none.
  • Timing is how long each frame stays on screen. The same four drawings feel heavy or light, sharp or lazy, depending only on their timing.

Step by step

  1. Pick the size first. The character’s height in pixels decides how much can move. At 16 px an arm is two pixels; at 48 px it can bend. See sprite sizes.
  2. Draw the key poses on separate frames: the extremes of the movement. Check that each one reads alone, as a silhouette.
  3. Play them at a rough speed before drawing anything else. If the key poses don’t read, in-betweens won’t save them.
  4. Add in-betweens only where the motion needs them, usually around fast moves and turns. Move whole clusters of pixels, not single ones, so the shape stays solid.
  5. Time it. Hold the key poses longer, shorten the fast frames, and add a frame of anticipation before a big action.
  6. Clean up. Remove pixels that flicker on and off between frames, keep outlines one pixel wide, and keep the character’s feet on the same pixel row while they are on the ground.
  7. Lay it out as a sprite sheet with one row per animation (and per direction), plus the data your engine needs: frame size, pivot, durations.

Which animations a game needs

Animation Frames Notes
Idle 2–6 Breathing, a blink, a cloth or hair sway. Loops.
Walk 4–8 (up to 12) Two contacts and two passing poses are the minimum. Loops.
Run 6–8 Longer stride, the body leaning forward, a frame with both feet off the ground.
Attack 4–8 A wind-up, a fast strike (one or two frames), a held impact, a recovery.
Hit 2–3 A recoil, often with a white or red flash.
Death 6–10 Ends on a held last frame, or dissolves away.
Props and pickups 4–12 A spinning coin, an opening chest, a flickering torch, a bobbing potion.
Effects 6–16 Explosions, sparks, magic: they grow fast and fade slowly.

Every animation that faces a direction needs one row per direction: 4 for most top-down games, 8 for smooth diagonal movement, 1 or 2 for a side-scroller.

Timing that makes it feel alive

Even timing, every frame the same length, looks mechanical. Animators break it on purpose:

  • Anticipation: a short move the other way before the action, like crouching before a jump.
  • Holds: keep the strongest pose on screen longer. A strike that holds its impact for an extra frame or two feels heavier; in a game that is a hit-stop.
  • Overshoot and settle: an arm swings slightly past its end pose and comes back.
  • Squash and stretch: a body squashes on landing and stretches when it leaps.
  • Smears: one stretched frame in place of a fast motion, so the eye reads speed.
  • On twos: hold each drawing for two frames when the movement can be slower, which also halves the drawing.

The frame timing guide goes deeper into frame counts, holds and smears, and the anticipation and follow-through tutorial shows them on a sprite.

Loops that don’t jump

A loop must change from its last frame to its first as smoothly as from any frame to the next. Draw the first frame, then make the last frame lead into it rather than repeat it. Idles, walks, fire, water and spinning pickups are loops; attacks, hits and deaths play once and hand back to the idle.

Small motions at small sizes

A pixel cannot move half a pixel, so a slow, small motion either does not show or jumps a whole pixel at once. Pixel artists fake the in-between by changing a pixel’s colour to a darker step of its ramp while the edge passes over it. That is sub-pixel animation, and it is what makes a 16-pixel character breathe.

Animating from a 3D model

Drawing every frame of every animation from every side is the slow part of pixel art. A 3D model turns it around: animate once (in Blender, or take a ready animation from Mixamo), then render the frames as pixel art from as many sides as the game needs. This is how pre-rendered sprites have always been made, from Donkey Kong Country to Dead Cells.

A plain render does not look like pixel art: edges are soft, colours drift, lines flicker between frames. Pixor is built for that step. It reads glTF, GLB, FBX (Mixamo too), OBJ and MagicaVoxel animations, renders them at one pixel size with steady light bands and one-pixel outlines, and keeps the pivot on the same pixel in every frame. It also does what animators do by hand:

  • Frames/s, Picked frames or Smart frames choose which moments of the motion become frames, from an even step to the poses where the motion turns.
  • Timing adds wind-up, overshoot and squash to any clip.
  • Library clips (idle, walk, run, jump, attack, hit, death) fit any humanoid skeleton, and the Gait node makes a walk for any creature from its legs alone.
  • Plant the feet keeps a walk’s feet on one pixel row.
  • Effects in clips put explosions, sparks and magic on the right frame of an animation.

The walk cycle guide shows the walk, idle and attack, the Mixamo tutorial goes from a downloaded animation to a sprite sheet, and 3D animation to sprite sheet covers cutting any clip into frames, holds and loops. Most artists still touch up a few key frames by hand: Pixor exports Aseprite files with a layer kept for that, and re-renders without losing your paint.

Questions

How many frames does a pixel art animation need?

Fewer than you think: an idle 2 to 6, a walk 4 to 8 (up to 12 for a smooth one), a run 6 to 8, an attack 4 to 8 with a short wind-up and a held strike, a hit 2 to 3, a death 6 to 10. Small sprites need fewer frames, because a pixel cannot move by less than a pixel.

What frame rate should pixel art animation use?

Most pixel-art games show animations at 8 to 12 frames a second, and hold some frames longer than others. The game itself runs at 60; the sprite just changes picture less often.

What software do I need to animate pixel art?

Any pixel editor with layers and a timeline works for frame-by-frame animation, Aseprite being the best known. To animate from 3D, you animate a model in Blender (or use Mixamo) and render it to pixel-art frames with a tool such as Pixor, then touch up key frames in your editor.

Should I draw every frame by hand or use 3D?

Draw by hand when you have few characters, few directions and a strong hand-made style. Start from 3D when you need many directions, many characters sharing animations, or frequent changes: one 3D animation gives every side and every size, and you finish key frames by hand.

Read next

Try it on your own model, free in your browser, or get the full version.

Try in browser Get Pixor