Each thing your character does in gameplay becomes one animation. Most 2D characters get by with fewer than ten: idle, walk or run, jump and fall, attack, hurt, and death cover a full platformer. Use one cell size that fits the biggest pose, keep the feet on the same pixel row, give each animation its own row, and draw one facing direction for the engine to mirror. Start with four animations and add more when the game asks for them.
Start From the Verbs
A downloaded "complete animation list" is a good way to burn out. Forty animations at six frames each is 240 drawings, before a single level exists.
Work from the game instead. Write down what the player makes the character do: run, jump, swing a sword, take a hit. Anything the game can trigger needs an animation. Anything it cannot trigger does not.
Then add the states nobody chooses but everybody sees. Standing still, falling off a ledge, getting hurt, dying. These are the ones that get forgotten, and their absence looks like a bug. A hero who freezes mid-stride when the stick is released reads as broken.
The Core Set
A typical side-scroller character, with normal frame counts at 8 to 12 fps. These are ranges people use, not rules.
| Animation | Frames | Loops? | What it is for |
|---|---|---|---|
| Idle | 2-6 | Yes | Breathing, blinking. Shows the character is alive |
| Walk | 4-8 | Yes | Basic movement. Four frames is enough for small sprites |
| Run | 6-8 | Yes | Faster movement, more lean, longer stride |
| Jump | 1-3 | Hold last | The rise. Often one frame is enough |
| Fall | 1-2 | Yes or hold | The descent, split from jump so the game can switch at the apex |
| Land | 1-2 | No | A quick squash on impact. Optional, but it sells weight |
| Attack | 3-6 | No | Wind-up, strike, recovery |
| Hurt | 1-2 | No | A flinch, usually paired with a flash or knockback in code |
| Death | 4-8 | No, hold last | Ends on a pose that can stay on screen |
Idle, walk, jump, and hurt are enough for a playable prototype. The rest can be placeholders until you know the game is fun.
Split jump into rise and fall, even on tiny sprites. Your physics code already knows whether the character is moving up or down, so picking the animation is one comparison. A single jump animation has to guess how long the character stays in the air, and the guess breaks whenever you tune the jump height.
How Many Frames Is Enough
Fewer than you expect. A four-frame walk at the right speed reads as walking, and at 16x16 or 32x32 nobody can follow eight in-betweens anyway. Each extra frame is also one more drawing to redo when the design changes.
Put frames where the motion is large. A sword swing travels far in very little time, so a smear frame helps. An idle barely moves, so two frames held for half a second each is plenty. Timing, holds, and the four poses of a walk are in the pixel art animation guide.
Attacks Have Three Parts
Fighting game designers split every attack into three phases, and the idea works in any game with combat:
- Startup is the wind-up. The sword goes back. It is the warning the other side gets, and a longer startup feels heavier.
- Active is the strike, the frames where the hitbox exists. Often one or two.
- Recovery is the follow-through, while the sword comes back to rest and the character is open to a counter.
Turn the hitbox on during the active frames, not after a timer, and the animation and gameplay cannot drift apart. You also get a tuning knob that needs no new art: hold the startup frame longer and the attack becomes slower and easier to read.
Directions and Mirroring
A side-scroller needs one facing direction. Draw the character facing right and flip it in the engine when it turns: flip_h in Godot, flipX on a Unity SpriteRenderer, setFlipX() in Phaser. That halves the art.
Top-down games need more:
| Setup | Drawn directions | Mirrored | Total rows per animation |
|---|---|---|---|
| 4-way | Down, up, side | Side for the other side | 3 |
| 4-way, no mirror | Down, up, left, right | None | 4 |
| 8-way | Down, up, side, two diagonals | Side and diagonals | 5 |
8-way means five drawn rows per animation against three for mirrored 4-way. Start with 4-way; you can add diagonals later if movement looks stiff.
Mirroring flips everything, including details that should not flip. The sword moves to the other hand, an eye patch switches eyes, a side parting jumps across the head. For most characters nobody notices. If the design is strongly one-sided, draw both directions.
One Cell Size for Everything
Every frame of every animation should sit in a cell of the same size. Of all the decisions here, this one saves the most trouble later.
Size the cell for the biggest pose, not the idle. The idle might fit in 24x32, but the sword swing reaches 20 pixels further and the jump tucks the knees up. Size for the idle and the attack frames either get clipped or end up in bigger cells, and since the engine anchors every cell the same way, the character visibly hops sideways when the animation changes.
So find the widest and tallest frames across all animations, add a pixel or two, and use that everywhere. If you are starting from nothing, the basics guide lists common frame sizes.
Keep the Feet on One Row
The feet should land on the same pixel row in every frame of every animation (jumps excepted, obviously). That row is the baseline, and it is usually where the engine pivot goes.
If the idle stands on row 30 and the walk on row 31, the character sinks a pixel every time it starts walking. Small, but once you see it you keep seeing it.
In the editor, Alignment snaps every sprite to one edge of its cell. Choose bottom and frames drawn at slightly different heights all stand on the same floor. Then put the engine pivot at the bottom center of the cell, and the position in your code is where the feet are.
One Animation Per Row
This layout works in every engine:
- One row per animation, top to bottom, each starting at the left edge
- The sheet is as wide as the longest animation; shorter rows end early
- For top-down, one row per animation per direction (idle-down, idle-up, idle-side, walk-down, and so on)
You can open a sheet like that, count along a row, and know exactly what to tell the engine. A Phaser animation is a frame range and a Godot SpriteFrames animation is a list of frames, and both are easy to set up when "walk" means row 2, frames 0 to 7.
The alternative is one sheet per animation: hero-idle.png, hero-walk.png, and so on. Those are easier to edit and swap out, at the cost of more textures to load. For one player character it hardly matters, so go with whichever you will keep organized. With many enemies on screen, one sheet per character keeps texture switches down.
Building It in the Editor
If your animations exist as separate GIFs or frame folders, the editor can combine them:
- Import each animation in order. A GIF opens in the importer, where GIF frames splits it; several PNGs dropped together become one frame each. The GIF guide covers conversion in detail.
- Set Columns to the frame count of your longest animation. Frames fill the grid in order, so after a short animation the next one starts mid-row. Right-click the first frame of the next animation and choose Insert empty frame before, once per empty cell needed, until it starts at the left edge.
- Set Alignment to bottom so every frame stands on the same baseline.
- Check each animation in the Preview tab. Turn on Compare sprites to get the Visible Frames list, then uncheck every frame outside one animation. Playback skips hidden frames, so that one animation loops on its own.
- Export the PNG plus your engine's format. The Godot export puts all frames in one animation named
default; split it into idle, walk, and the rest in the SpriteFrames panel. In Phaser, define each animation as a frame range on the same texture.
Before You Draw
Answer these before drawing the second frame of anything:
- Which actions can the player trigger, and which states will they see?
- Which four animations go in the prototype?
- One direction plus mirroring, or more?
- What is the biggest pose, and what cell size fits it?
- Which pixel row is the baseline?
- One sheet per character, or one per animation?
Each takes a minute to decide now. After fifty frames, every one of them is expensive to change.
Frames ready? Put them on one sheet. Open the editor
Try it in the editor
The editor is free and needs no account. Open it in another tab and work through the steps above with your own frames.