How to make a pixel art walk cycle

Updated · Adib Khan

A small pixel-art character walking, a four-frame walk cycle
The Walk starter: four frames, 140 ms each. Open it in the editor.

The four poses

A walk looks complicated, but a small sprite needs very little. Four frames carry it, and they are really two poses used twice, once for each leg.

The four frames of the Walk starter side by side: contact, passing, contact with the other foot forward, passing
The four poses of the Walk starter, left to right: contact, passing, contact, passing.

The up and down bob is the part beginners skip, and it is what makes a walk feel like weight. In the Walk starter the head and body sit one pixel higher on the two passing frames, and that one pixel is enough.

Draw your first walk cycle.Open the editor

Steps

  1. Start small. Choose File, then New sprite (Alt+N), and pick a size. 16 by 16 is a good first size: you will place every pixel on purpose. 32 by 32 gives room for a face and hands.
  2. Draw the contact pose in frame 1. Start with the head and body as simple blocks, then the legs as two diagonal lines, then arms. Keep the feet on the same row, since both are on the ground.
  3. Duplicate it. Press D, or the duplicate button in the timeline. The copy lands right after the frame you were on and becomes the current one, so you can change it straight away.
  4. Make the passing pose in frame 2. Pull the legs together so one is almost under the body and the other is bent and lifted. Then lift the head and body one pixel: choose select (M), select the upper body, and nudge it with the up arrow. Each arrow press moves the selection one pixel, and Shift moves it eight.
  5. Duplicate frame 1 again for the third pose, and swap the legs and the arms so the other foot is forward.
  6. Duplicate frame 2 for the fourth pose and swap the legs again.
  7. Check with onion skin. Press O for Ghosts. The frames before and after show as faint tints, one orange and one violet, so you can see where each foot was and where it goes next. Press the bracket keys to show fewer or more ghost frames.
The PixelFlipbook editor on the second frame of the Walk starter, zoomed in, with the ghosts of frame 1 and frame 3 faintly tinted around the character and four thumbnails in the timeline, each 140 ms
Frame 2 with its ghosts. The legend at the top left says which tint is the frame before and which is the frame after.

Timing and speed

The starter shows each frame for 140 ms, so one step takes 280 ms and the full cycle of two steps takes 560 ms. A slower walk reads as tired or heavy, and a quicker one as hurried. Try 100 ms for a brisk walk and 180 ms for a stroll, and trust your eye.

To set the time for all four at once, tap frame 1, shift-tap frame 4, and use the clock button in the bar that appears. The dialog takes milliseconds or frames per second, and each fills in the other. You can also give one frame a longer hold, which is a cheap way to add character: a slightly longer contact frame gives the step a heavier landing.

The Set duration dialog for frames 1 to 4 of the walk, with a Milliseconds field showing 140, a Frames per second field showing 7.14 and the Set duration button
Setting all four frames at once. The two fields stay in step: 140 ms is about 7 frames a second.

Press Space to play. If the cycle has a hitch, play it a few times with your eyes on the feet, then look at the frame where the hitch lands.

Common problems

Tag it and export

Tag the four frames so an engine can find them. Select all four, use the tag button in the bar that appears, name it "walk" and leave the direction on Forward. In the Tags dialog, turn on Loop this tag when playing and Play loops just that tag.

For a GIF, open File, then Export, and pick GIF. For a game, choose Spritesheet instead, which writes a PNG and a JSON file with your tag in it. The sprite sheet guide covers the layouts, and the Godot guide turns tags into animations. If you start from a sheet that already exists, this guide shows how to cut it into frames.

Open the Walk starter as your own copy to see all of this in place. Each time you open it you get a new project, and the original is never changed.