Manual Make

On this page
  1. Animate a master
  2. Rigs
  3. Only some frames
  4. Sharper motion with a part map
  5. Your own rig
  6. Fix one frame by hand
  7. Check the frames
  8. Preview as GIFs
  9. When it goes wrong
  10. Next

Animation

Turn one approved sprite into walk, attack, idle and jump frames that never flicker, check that the feet stay put, and preview every animation as a GIF.

mode8 anim makes animation frames from one approved sprite, the master. It does not draw the frames again: it moves the master's own pixels, part by part, so a face, a buckle or a highlight is exactly the same pixels in every frame. Animation drawn frame by frame "boils" (shapes and colors wobble from frame to frame); Mode 8 animation does not. It runs on the CPU in under a second.

The starter knight's walk, made by mode8 anim from its master
The humanoid rig's walk on the starter knight, at 4x

Animate a master#

Any finished sprite works as a master. The starters come with one, so start there:

terminal
$ mode8 init my-game --template platformer
✓ Created the platformer starter in my-game/
  26 assets · palette nes_master_gothic · lint 26/26 passed
  hero, slime, ground, wall, window, pillar, ledge_left, ledge, ledge_right, stairs, +6 more + 10 UI pieces
  UI kit → my-game/godot/art/ui/ · font → my-game/godot/art/font/
  Godot project → my-game/godot/ (runs main.tscn)

Next:
  cd my-game
  godot -e --path godot
  mode8 studio .
  mode8 export hero
terminal
$ cd my-game
terminal
$ mode8 anim assets/hero/master.png --rig humanoid --prefix hero --out-dir frames/hero --sheet shots/hero-anim.png
✓ Animated 15 frames → frames/hero/
  idle 4, walk 6, jump 1, attack 3, hurt 1  rig humanoid
  strip → shots/hero-anim.png

Next:
  mode8 export frames/hero --out-dir exports/hero --name hero
  mode8 verify --assets-dir frames/hero --check-anim --include-root

The humanoid rig made 15 frames in five animations, named hero_idle.png, hero_walk_0.png and so on (--prefix sets the first part; it defaults to the master's file name). --sheet writes a zoomed strip of all of them for review:

The 15 frames of the humanoid rig on the starter knight: idle, six walk frames, jump, windup, attack, recover and hurt
mode8 anim --sheet: every frame the rig made

Next to the frames, anim writes the timing of each animation, so it travels with the PNGs into every export:

terminal
$ cat frames/hero/hero.anim.json
{
  "schema": "mode8.anim/1",
  "mode8_version": "1.0.0",
  "rig": "humanoid",
  "facing": "right",
  "size": [
    64,
    72
  ],
  "prefix": "hero",
  "frames": {
    "idle": "hero_idle.png",
Show 75 more lines
    "idle_1": "hero_idle_1.png",
    "idle_2": "hero_idle_2.png",
    "idle_3": "hero_idle_3.png",
    "walk_0": "hero_walk_0.png",
    "walk_1": "hero_walk_1.png",
    "walk_2": "hero_walk_2.png",
    "walk_3": "hero_walk_3.png",
    "walk_4": "hero_walk_4.png",
    "walk_5": "hero_walk_5.png",
    "jump": "hero_jump.png",
    "windup": "hero_windup.png",
    "attack": "hero_attack.png",
    "recover": "hero_recover.png",
    "hurt": "hero_hurt.png"
  },
  "animations": {
    "idle": {
      "frames": [
        "idle",
        "idle_1",
        "idle_2",
        "idle_3"
      ],
      "fps": 4,
      "loop": true,
      "durations": [
        2,
        1,
        2,
        1
      ]
    },
    "walk": {
      "frames": [
        "walk_0",
        "walk_1",
        "walk_2",
        "walk_3",
        "walk_4",
        "walk_5"
      ],
      "fps": 10,
      "loop": true,
      "stride_px": 38.0
    },
    "jump": {
      "frames": [
        "jump"
      ],
      "fps": 8,
      "loop": false
    },
    "attack": {
      "frames": [
        "windup",
        "attack",
        "recover"
      ],
      "fps": 8,
      "loop": false,
      "durations": [
        2,
        1,
        2
      ]
    },
    "hurt": {
      "frames": [
        "hurt"
      ],
      "fps": 8,
      "loop": false
    }
  }
}

Rigs#

A rig is the recipe that moves the pixels. Mode 8 has seven, one for each kind of body:

terminal
$ mode8 list rigs
8 rigs
  humanoid        idle, walk, jump, attack, hurt (faces right)
  quadruped       idle, run, jump, attack, hurt (faces left)
  boss_quadruped  idle, charge, attack, cast, hurt (faces left)
  flyer           idle, flare, hurt
  topdown         idle, walk, attack, hurt
  mech            idle, walk, fire, hurt (faces right)
  vehicle         idle, thrust, bank
  blob            idle, walk, hop, attack, hurt (faces right)

Next:
  mode8 anim sprites/hero.png --rig humanoid --out-dir frames/hero
Each of the seven rigs playing its main animation: humanoid, quadruped, boss_quadruped, flyer, topdown, mech and vehicle
Every built-in rig, on a generated master of its kind

Each draft archetype names the rig that fits it (mode8 list archetypes). A rig assumes a facing: humanoid and mech face right, quadruped and boss_quadruped face left. When your master faces the other way, say so with --facing left or --facing right and the frames come out facing the way your master does.

Only some frames#

--frames takes frame or animation names, so you can make just what you need:

terminal
$ mode8 anim assets/hero/master.png --rig humanoid --frames idle,walk --prefix hero --out-dir frames/hero-walk
✓ Animated 10 frames → frames/hero-walk/
  idle 4, walk 6  rig humanoid

Next:
  mode8 export frames/hero-walk --out-dir exports/hero --name hero
  mode8 verify --assets-dir frames/hero-walk --check-anim --include-root

Sharper motion with a part map#

Without help, a rig moves proportional bands of the sprite: the lowest band is the legs, the top band the head. That works for most sprites. When a cloak hangs over the legs or an arm crosses the body, give the rig a part map: an image that says which pixels are the head, the torso, each leg, the front arm and the cloak.

terminal
$ mode8 parts assets/hero/master.png --rig humanoid --out parts/hero.png --overlay shots/hero-parts.png
✓ Part map → parts/hero.png (6 parts)
  overlay preview → shots/hero-parts.png

Next:
  mode8 anim assets/hero/master.png --parts parts/hero.png --rig humanoid --out-dir frames/hero
The part map of the starter knight, one color per part, over the sprite
The overlay: cloak, legs, torso, head and front arm

The overlay shows each part in its own color. The map itself stores each part as one gray level, and parts/hero.json names them (5 is the head, for example). If a part is wrong, paint parts/hero.png with the right level in any editor, then animate with it:

terminal
$ mode8 anim assets/hero/master.png --rig humanoid --parts parts/hero.png --prefix hero --out-dir frames/hero-parts
✓ Animated 9 frames → frames/hero-parts/
  idle 1, walk 4, jump 1, attack 2, hurt 1  rig humanoid

Next:
  mode8 export frames/hero-parts --out-dir exports/hero --name hero
  mode8 verify --assets-dir frames/hero-parts --check-anim --include-root

For a draft, --propose guesses the parts from the draft's colors and shading instead of the rig's proportions.

Your own rig#

A rig is a small JSON file. This one gives the starter slime a two-step wobble for its idle and a three-frame jump:

rigs/slime.json
{
  "name": "slime",
  "parts": {
    "body": {"box": [0.0, 0.0, 1.0, 1.0], "pivot_y": 1.0}
  },
  "frames": {
    "idle":   {"ops": [{"part": "body"}]},
    "lean_l": {"ops": [{"part": "body", "shear_x": -0.05}]},
    "lean_r": {"ops": [{"part": "body", "shear_x": 0.05}]},
    "jump_0": {"ops": [{"part": "body", "dy": -3}]},
    "jump_1": {"ops": [{"part": "body", "dy": -6}]}
  },
  "animations": {
    "idle": {"frames": ["idle", "lean_l", "idle", "lean_r"], "fps": 6, "loop": true},
    "jump": {"frames": ["jump_0", "jump_1", "jump_0"], "fps": 10, "loop": false}
  }
}
terminal
$ mode8 anim assets/slime/master.png --rig-file rigs/slime.json --prefix slime --out-dir frames/slime --sheet shots/slime.png
✓ Animated 5 frames → frames/slime/
  idle 4, jump 3  rig slime
  strip → shots/slime.png

Next:
  mode8 export frames/slime --out-dir exports/slime --name slime
  mode8 verify --assets-dir frames/slime --check-anim --include-root

How a rig file works:

  • parts cut the master into boxes, [x0, y0, x1, y1], as fractions of its size (or pixels, with "units": "px"). pivot_y is the row a part bends from.
  • frames build each frame from ops, drawn in order. An op copies one part, moved by dx and dy pixels and slanted by shear_x (pixels per row away from the pivot).
  • animations group frames and give each group its fps and loop. Without it, frames are grouped by name: walk_0 and walk_1 make walk.

Every frame gets a fresh outline. Name animations that leave the ground jump, fall, hurt, hit or knockback: the check below knows they move the feet on purpose.

Fix one frame by hand#

When one frame needs a touch the rig cannot give, paint it. In a project, open the frame in the Studio and paint the fix: Mode 8 stores it as a sparse override in assets/<name>/overrides/<frame>.png, only the pixels you changed, and lays it over the rig's output. Run the rig again (after a change to the master, say) and your fix is still there. Agents save overrides with the mode8_project_save_override MCP tool.

Check the frames#

mode8 verify --check-anim lints every frame and measures each animation folder: the feet must stay on the idle frame's foot line, and the sprite's size and center must not jitter.

terminal
$ mode8 verify --assets-dir frames --check-anim
✓ 39 assets checked: all good
  4 animations checked, 4 stable  (feet 4 px, size 8 px, scaled to the frame height)

The limits scale with the frame height, so a 72-pixel knight may move more than a 16-pixel one. Animations that leave the ground on purpose (jump, fall, hurt, hit, knockback) are checked for sideways drift only, and the JSON report lists what it skipped under skipped_checks, so nothing is skipped silently.

Point --assets-dir at the folder that holds the frame folders. Pointed at one frame folder, it stops and says to add --include-root:

terminalexit 2
$ mode8 verify --assets-dir frames/hero --check-anim
error: --check-anim found no animation to compare under frames/hero (an animation is a folder of 2+ PNG frames, e.g. assets/<name>/frames): pass include_root (--include-root) to check its 15 loose PNGs as one animation, or point --assets-dir at the folder that holds the frame folders
  example: mode8 verify --assets-dir frames --check-anim

Preview as GIFs#

terminal
$ mode8 export frames/hero --out-dir exports/hero --name hero --formats gif
✓ Exported hero (15 frames) → exports/hero/
  gif · 6 files
  animations idle, walk, jump, attack, hurt
  preview exports/hero/hero.gif + one GIF per animation (5)
  palette nes_master_gothic from mode8.toml

Next:
  mode8 verify --assets-dir exports/hero

You get one GIF per animation (hero_walk.gif ...) at 4x, each at its own frame rate, plus hero.gif, the idle loop. --gif-scale sets the zoom and --gif-transparent keeps the background clear. Exporting packs the same frames for an engine.

When it goes wrong#

  • "foot line drifts": a grounded frame moved the feet. The message says how far and which shift fixes it; check the rig's dy values, or name the animation as one that leaves the ground.
  • Legs or a cloak slide as a block: the rig is using proportional bands. Give it a part map.
  • Frames face the wrong way: pass --facing with the direction your master faces.
  • A frame you fixed by hand lost its fix: fixes made directly in frames/ are overwritten when the rig runs again; make them in the Studio, where they are kept as overrides.

Next#

  • Exporting: atlases, Godot SpriteFrames and engine formats, with the timing kept.
  • Effects: hit flashes, dissolves and afterimages made from the same master.
  • Godot: a playable scene with hitboxes per frame.