Your jump feels wrong and you can't say why. The arc is right, the gravity is tuned, the landing lines up with the platform. Then you count frames in a screen recording and find it: eleven frames of crouch anticipation before the character leaves the ground. At 60 fps that's 183 milliseconds of the player pressing a button and nothing happening. The animator did beautiful work. The move is now unplayable.
Animation is where art and mechanics collide, and on a small team nobody owns that collision. The programmer assumes the animation will fit the timing; the animator assumes the timing will fit the animation. Nobody writes it down, so the fight happens in week 30 instead of week 3, when the sheet is finished and re-timing it means redrawing it.
This is the fix: count your states before you commission art, give every state a timing contract, and decide in advance which movements get real animation and which ones get faked.
Count the states, not the animations
Most indie teams estimate animation by listing verbs: run, jump, attack, die. Then production reveals the real list. A single melee attack in a 2D action game is rarely one animation:
- attack 1, attack 2, attack 3 (the combo chain)
- the whiff recovery, which is different from the hit recovery
- the airborne version
- the version that plays when the attack is cancelled into a dodge
That's six clips for "attack". Then multiply by directions: an eight-direction top-down character with four locomotion states is 32 clips before anything interesting happens, the same character in four directions is 16, and mirroring left from right makes it 12. That one decision is worth more to your schedule than any individual optimisation, and it has to happen before anyone opens the art tool.
So the first artefact is a flat state list with a count. For a small action platformer:
| State group | Clips | Notes |
|---|---|---|
| Locomotion | 6 | idle, walk, run, turn, jump rise, fall |
| Landing | 2 | soft, hard (hard only above fall-speed threshold) |
| Combat | 7 | 3-hit combo, whiff recovery, air attack, parry, parry success |
| Damage | 3 | flinch, knockback, death |
| Interaction | 3 | pick up, open, talk |
| Flavour | 2 | idle break, victory |
Twenty-three clips — a number you can schedule against, and usually far more than the team guessed out loud.
Keep that list where your mechanics live rather than in a chat message — in GameDesignerX, the move entries in the mechanics module are the natural home, because clip lists and frame data want to sit next to the move that uses them.
The timing contract
Every gameplay-relevant animation needs four numbers before it gets drawn or keyed. Borrow the fighting-game vocabulary; it's the clearest language the industry has for this:
- Startup: frames from input to the first frame that affects the world. This is your responsiveness budget.
- Active: frames where the hitbox, hurtbox or state change is live.
- Recovery: frames before the player regains control.
- Cancel window: the frame range where another input can interrupt this one.
Fill those in as a table and you've specified the animation without drawing it:
| Move | Startup | Active | Recovery | Cancel into |
|---|---|---|---|---|
| Light attack | 4 | 3 | 8 | attack 2 from frame 7 |
| Heavy attack | 11 | 4 | 18 | nothing |
| Dodge | 2 | 12 (invuln 2-9) | 6 | attack from frame 10 |
| Jump | 2 | — | — | attack any frame |
Now the animator knows that the heavy attack has eleven frames of wind-up to play with and the light attack has four. Four frames is one smear and a pose. That constraint produces better art than "make it feel punchy" does, because it tells the animator where the expressiveness has to go: into the active and recovery frames, not the startup.
Two rules that keep it honest
Two rules keep this honest. Responsive actions — jump, dodge, light attack, ability activation — should start in roughly 1 to 5 frames at 60 fps. Anything slower needs a reason the player can see, which is what telegraphed heavy attacks are for. And animation length is never allowed to define gameplay length; if the clip is longer than the state, the clip gets cut off or blended out, and that is fine. A hit reaction that visually settles over 20 frames while control returns at frame 9 is normal, not a bug.
What to fake
The cheapest animation is the one you don't make. Faking is not a compromise here; a lot of movement reads better when it's procedural, because it responds to the actual physics instead of approximating it.
- Squash and stretch on a scale node. Scale Y to 1.15 on jump takeoff and 0.85 on landing over four frames. One line of code, replaces a dedicated takeoff clip in many art styles.
- Additive layers. Breathing, weapon sway and head-look as additive clips over any base state, instead of baking variants.
- Hit-stop over hit animation. Freeze both characters for 3–5 frames on impact and shake the camera. Players read this as weight more strongly than they read the swing arc.
- VFX as the hitbox. A slash arc, dust puff or impact flash can carry the readability of a move whose character animation is only three frames.
- One death, many deaths. A single collapse clip plus a directional knockback impulse covers what five bespoke death animations were going to cover.
Reserve hand-crafted animation for what players see hundreds of times — idle, run, primary attack — and for moments where the camera holds on the character. The long tail gets faked, reused or cut.
The event track
The animation doesn't just look; it triggers. Footsteps, dust, the hitbox spawn, the screen shake. If those live in code as hardcoded timers, every re-timed animation silently desyncs its audio and VFX. Put them on the clip as named events, specced in the same table as the frame data:
| Clip | Frame | Event |
|---|---|---|
| run | 3, 9 | footstep |
| heavy_attack | 11 | hitbox_on |
| heavy_attack | 11 | sfx_swing_heavy |
| heavy_attack | 15 | hitbox_off |
| land_hard | 1 | dust_burst, camera_shake_small |
Re-timing then becomes safe: move the impact two frames later and the sound, the hitbox and the shake move with it, because they were never separate numbers.
A pre-production checklist
Run this before the first gameplay animation is commissioned, whether that's a contractor, a teammate, or you in three weeks:
- Direction count locked (4 or 8; mirrored or not) and written down
- Frame rate for animation playback locked (e.g. 12 fps sprite on a 60 fps game loop)
- Full clip list with a count, grouped by state
- Startup / active / recovery / cancel table for every gameplay move
- Which clips are hand-made and which are procedural or reused, marked per clip
- Event names standardised (
footstep, notstepin one clip andfoot_Lin another) - One test character animated end to end before the other five are started
- Naming and file layout agreed so the import pipeline doesn't need per-clip fixes
The test character is the point people skip. Animating one character completely — every state, events wired, timing contract honoured in a playable build — will change your clip list. Finding that out after five characters are finished costs five times as much.
Tracking it as production, not art
Twenty-three clips at an hour each is not a sprint item called "animation". Break it out per clip group on your task board, because the thing you need to see is which states are missing, not what percentage of "animation" is done. A character that is missing its turn animation and its hard landing is not 90% animated; it's a character that feels broken in two specific, findable ways.
Keep the frame-data table versioned next to the mechanic it belongs to, and note in your build log when timings change. The first time a playtester says combat feels sluggish three builds after it felt fine, you'll want to know which startup number moved.
The point of all of this isn't to make animation cheap. It's to stop art and timing from negotiating by accident, at the exact point in the project when neither one can afford to move.