Make a pixel art run cycle

Updated · Adib Khan

A small pixel-art runner with brown hair and a red shirt, drawn as a six-frame run cycle: reaching, dropping, passing, then the same with the other leg
The run cycle made for this page: six frames, 90 ms each, drawn in the editor. Open it in the editor.

What a run cycle is

A walk always has a foot on the ground. A run does not: for a moment both feet are in the air. That one difference changes the whole drawing. The body leans forward, the arms bend and pump, and the head bobs up and down more than it does in a walk. If you want the slower version first, the walk cycle guide builds four frames from scratch.

This page builds a run in six frames. That is three poses for one leg and the same three for the other. When the sixth frame is done, the loop goes back to the first, and the runner has taken two steps. Six frames is a good size for a 16 pixel sprite: enough to show the bob and the swing, few enough to draw in an evening.

The runner you can open below was drawn in PixelFlipbook with a mouse, one stroke at a time, and the GIF above was made by the editor's own Export dialog. Nothing was touched up afterwards, so what you see is what the editor does.

Open the runner in the editor to follow along. It opens as your own copy, a new project, and the original is never changed.

Open the runner and make it your own.Open the editor

The six frames

Each pose has a name. Learn the names and you can read any run cycle, on this page or anywhere else.

  1. Contact (frame 1). The near foot reaches forward and is about to land. The far leg trails behind, almost straight. The arms are opposite: the near arm swings forward, the far arm back.
  2. Down (frame 2). The foot has landed under the body and the body sinks. This is the lowest point, so the whole upper body, head and shirt together, sits one pixel lower than in frame 1. The far leg folds up behind.
  3. Passing (frame 3). The body rises to its highest point, one pixel higher than in frame 1. The planted leg is straight and the far leg swings through underneath it.
  4. Frames 4, 5 and 6. The same three poses with the sides swapped. The far leg is now the near one.

Count the heights. The hair starts on the third row from the top in the contact frames, the fourth row in the down frames and the second row in the passing frames. Only one pixel each way, but it is the whole illusion. Move the body more and the runner starts to hop. Move it less and it slides.

To keep the two sides readable in a sprite this small, the runner's far arm and far leg are brown, the same brown as the hair and a shade darker than the near ones. It needs no extra palette colour, and it gives the figure a front and a back with no outline at all.

Steps

  1. Start a 16 pixel sprite. In the editor choose File, then New sprite, pick 16 and press Create. A new sprite is 32 by 32 unless you change it, and 16 keeps every pixel easy to see.
  2. Draw the contact pose on the first frame with the Pencil. Start with the head and shirt, then the legs. Get the feet wide apart: a stride is wider than you think.
  3. Add a frame. Press N, or the plus button in the timeline. A blank frame appears after the one you are on and becomes the current one.
  4. Try the ghosts. They show the neighbouring frames faintly under the one you are drawing, so you can line up the head and the feet. The Ghosts button in the timeline turns them on and off, and so does the O key.
  5. Draw the down pose a pixel lower, then add a third frame and draw the passing pose a pixel higher.
  6. Draw frames 4 to 6. Do not copy and flip the first three. The runner faces the same way all the way through, so swap which leg and arm is in front, and swap the shades.
  7. Press Space to play. Press it again to stop, and use the comma and full stop keys to step one frame back and forward while you fix a pose.
The PixelFlipbook editor with the six-frame runner open: the third frame on the canvas, the palette on the right and six frame thumbnails in the timeline, each marked 90 ms
The runner open in the editor, on the passing frame. The six thumbnails at the bottom are the six poses.

Set the timing

A new sprite starts every frame at 125 ms, which is eight frames a second. That is a calm walk. A run wants to be quicker, and this one uses 90 ms a frame, so the whole loop takes 540 ms.

The box labelled Duration beside the timeline sets the time of the frame you are on, from 10 to 65535 ms. To set all six at once, tap frame 1, shift-tap frame 6, and use the clock button. On a phone the Duration box is not there: tap Expand timeline, then Frame actions, and choose Set duration. The dialog takes milliseconds or frames per second, and each field fills in the other.

The Set duration dialog in PixelFlipbook for frames 1 to 6, with the milliseconds field set to 90 and the matching frames per second beside it
One dialog, all six frames. Type 90 and apply.

Equal times are right for most runs. If you want the run to feel heavier, hold the contact frames a little longer, say 110 ms, and keep the passing frames at 70 ms. The runner then seems to hang a moment on each landing.

Export the GIF

Press Ctrl+E (or Cmd+E on a Mac) to open Export, choose the GIF tab and press Export GIF, then Save. A 16 pixel sprite is tiny on a screen, so the editor suggests ×8 for it, which makes this GIF 128 by 128 pixels.

The GIF plays every frame once, in order, and then loops forever. It does not follow tags. If you want the sprite in a game engine instead, the sprite sheet guide covers the layouts and the JSON.

Common mistakes

Once the run works, jump with the same character to see how the two fit together.