This article contains one affiliate link, marked as such. If you buy through it, I earn a small commission at no extra cost to you.

Pixel art knight with a red cape in the four key poses of a walk cycle, numbered 1 to 4: Contact with the feet apart, Down with a bent front knee and a lower body, Pass with the body at its highest and one leg under it, and Swing with the back leg coming forward

In the Aseprite beginner guide you drew your first sprite. It stands still. This tutorial is part two of the Aseprite series, and it’s where your character starts to move.

A walk cycle is the animation you’ll need first in almost every game with a character in it. It’s also the best way to learn animation in Aseprite, because it touches everything at once: frames, the timeline, onion skinning, timing and export.

The good news is in the diagram above. A classic side-view walk cycle has eight frames, but you only really draw four of them. The other four are the same poses with the legs and arms swapped. You’ll build those four key poses, set up onion skinning so you can see what you’re doing, create the second half from the first, and export the finished loop as a GIF.

What You’ll Need

  1. Aseprite and the basics from the Aseprite beginner guide: canvas, pencil, palette, export
  2. A sprite size. If you haven’t picked one, read Choosing the Right Resolution and Sprite Size first. It even has a table of how many pixels an 8-frame walk cycle costs at each size.
  3. A side-view character, or a simple stand-in figure. The silhouette tutorial helps if you want one that reads well in motion.
  4. About 60 minutes

Step 1: Understand the Four Key Poses

Before you touch Aseprite, you need a picture of what a walk actually is. My main reference for this tutorial is Pixelblog 50: Human Walk Cycle by Raymond Schlitter (Slynyrd), published in May 2024. He builds side-view walk cycles from real video reference and reduces them to eight frames.

The first four frames are the key poses:

  1. Contact: the front heel meets the ground. Arms and legs are at the extremes of their swing, and the whole figure is at its lowest point.
  2. Down: the front foot comes down flat, and the back foot lifts off the ground and begins to swing forward.
  3. Pass: the legs cross each other in the middle. This is where the figure is tallest.
  4. Swing: the swinging leg makes its biggest movement forward but stays off the ground.

After frame 4, the figure is ready for the next contact, this time with the other leg in front. Slynyrd describes frames 5 to 8 as “more or less a mirror of the first four frames, with minor adjustment to account for implied perspective.”

Two more observations from his post are worth keeping in mind:

  • The arms work against the legs. Slynyrd notes that limbs on opposite sides of the body move together with shared momentum. The left arm goes with the right leg, and the right arm with the left leg.
  • The head moves up and down. Slynyrd points out that the head positions across the sequence form a triangle-shaped wave. A perfect sine wave, he writes, feels a bit unnatural. That’s the bottom row in the diagram above: lowest on Contact, tallest on Pass.

He also shows shorter versions. A 6-frame cycle drops the least important frames for economy. A 4-frame cycle keeps only the key poses but, in his words, “feels somewhat lacking on it’s own.” Eight frames is a good place to start.


Step 2: Set Up the Sprite and Layers

Open Aseprite and create a new sprite in your chosen size with a transparent background, the same way as in the beginner guide. Leave some room around the figure. During the walk, the legs reach further forward and back than in a standing pose, and the head moves up.

Slynyrd starts with a simple color-coded dummy that clearly separates the core body parts: head, neck, torso, arms and legs. Do the same. Clothing, hair and details come later, once the motion works.

For this tutorial, one detail of the dummy matters a lot: give the near limbs and the far limbs different colors. The near arm and leg (the ones closer to the viewer) get a lighter color, the far arm and leg a darker one. That makes it easy to see which leg is in front at any moment. In step 6 it becomes the trick that saves you half the drawing.

Keep each color unique to its body part. If the near leg and the torso share a color, the color swap in step 6 won’t work cleanly.


Step 3: Draw the Contact Pose

Draw frame 1, the Contact pose. Front leg forward with the heel touching the ground, back leg behind with the foot still on the ground. The near arm swings the opposite way of the near leg.

Check the pose against the description from step 1:

  • Both feet on the ground, legs at their widest
  • Arms at the end of their swing
  • The body sits at its lowest height of the whole cycle

Mark the ground line. A single row of pixels in a separate layer or a guide is enough. Every foot that touches the ground in any frame has to sit exactly on that line, or the character will look like it floats.


Step 4: Add Frames and Switch On Onion Skinning

Now you need more frames. The Aseprite documentation has two commands for that:

  • Frame → New Frame (Alt+N) creates a copy of the current frame in the next position.
  • Frame → New Empty Frame (Alt+B) creates an empty frame.

For animation, the copy is usually the better start. Press Alt+N three times so you have four frames, each a copy of Contact. You’ll change each copy into the next pose.

If the timeline isn’t visible, press Tab or use View → Timeline. You move between frames with the left and right arrow keys, or with , and ..

Next, switch on onion skinning. It shows the neighboring frames as faint ghosts behind the current one, so you can see where a leg was a moment ago and where it’s going. According to the Aseprite documentation, you switch it on with F3 or with the small onion skin icon in the timeline. You can choose how many previous and next frames you want to see. Other settings, such as the red/blue tint, are in the Configure Timeline icon.

Onion skinning on a pixel art canvas: the knight in the Pass pose drawn solid in the middle, behind him a red translucent ghost of the previous Down frame, ahead of him a blue translucent ghost of the next Swing frame

I’d start with one previous and one next frame. More than that quickly turns into a cloud of ghosts on a small sprite. The red/blue tint helps you tell the past frame from the next one.


Step 5: Draw Down, Pass and Swing

Go to frame 2 and turn the copy of Contact into Down: the front foot comes down flat, and the back foot lifts off the ground and starts to swing forward. With onion skinning on, you see Contact behind it as a ghost.

Frame 3 becomes Pass: the legs cross in the middle, and the body reaches its highest point. Move the head and torso up. Frame 4 becomes Swing: the free leg reaches forward, still in the air.

A few things to check on every frame:

  • Ground line. The foot that carries the weight stays exactly on it.
  • Arms. They always move against the legs on the same side.
  • Height. Follow the triangle wave from step 1. The body is lowest on Contact and tallest on Pass, Down and Swing lie in between.
  • Volume. The torso and head shouldn’t grow or shrink between frames. Only their position changes.

Don’t polish yet. In animation, the motion matters more than any single frame. Fix the poses first, add details at the very end.


Step 6: Build the Second Half by Swapping Limbs

Here’s where the color-coded dummy pays off. Frames 5 to 8 repeat the four poses with the other leg in front. In a side view, that doesn’t mean flipping the image. Edit → Flip Horizontal (Shift+H) would turn the whole character around, and it would suddenly walk in the opposite direction. Instead, you keep everything where it is and swap which limbs are near and which are far.

An 8-frame walk cycle as eight numbered boxes: Contact, Down, Pass, Swing, then the same four poses again. Frames 1 to 4 are drawn, frames 5 to 8 are copies with near and far limbs swapped. Below, the head height per frame forms a triangle wave, lowest on Contact and tallest on Pass

  1. Copy frames 1 to 4. Select frames 1 to 4 in the timeline. Following the Aseprite documentation on copying frames, move the mouse to the border of the selection, hold Ctrl or Alt, drag and drop the copy behind frame 4. You can drop copies beyond the end of the animation, which extends it. Now you have eight frames.
  2. Swap the colors. Select frames 5 to 8. Open Edit → Replace Color (Shift+R). The documentation explains that a button at the bottom lets you apply it to the active timeline selection (Selected) or to all cels (All). Choose Selected and set the tolerance to 0 so only the exact color is replaced. Because you’re swapping two colors, it takes three passes: near color → a temporary color that isn’t used anywhere, far color → near color, temporary color → far color.
  3. Fix the overlaps. The swap changes the colors but not which limb is drawn on top. Wherever the limbs overlap, especially at the Pass frame and where an arm crosses the torso, the near limb has to cover the far one. Go through frames 5 to 8 and redraw those spots by hand.

Slynyrd also mentions minor adjustments for implied perspective. With a simple side-view dummy, the overlaps are the main ones. Fixing them takes a few minutes. Drawing four new poses would take much longer.


Step 7: Play the Loop and Adjust the Timing

Press Enter to play the animation. For a view that keeps running while you edit, open the preview window with F7 or View → Preview.

Every frame in Aseprite has its own duration. Aseprite’s developer explains in the Aseprite community forum that durations are set in milliseconds. You change the duration of the current frame with Frame → Frame Properties (P). To change several frames at once, select them in the timeline, right-click and choose Properties, as described in the documentation on frame duration.

There’s no single correct speed. It depends on your character and your game. Watch the loop at 100 % zoom and ask yourself two questions:

  • Does it look rushed? Make all frames a bit longer.
  • Does it look like slow motion? Make them shorter.

Then watch the seam between frame 8 and frame 1. If the figure jumps there, one of the poses isn’t consistent, often the height or the position of the foot on the ground line.

Later, in your game engine, the walking speed of the character and the animation speed have to fit together. If the feet slide over the ground, change one of the two.


Step 8: Export the Loop as a GIF

First save your work as an .aseprite file with File → Save. That keeps all frames, layers and durations for later.

To share the walk cycle, export it as a GIF. The Aseprite documentation on exporting describes File → Export → Export As: enter a file name ending in .gif, and Aseprite converts your sprite into an animated GIF. The export dialog has a Resize field, so you can save the copy at a larger scale. A small sprite at its original size is tiny on a screen, so pick a whole-number scale for sharing (more on why whole numbers matter in the resolution tutorial).

The same dialog also lets you choose the animation direction: Forward, Backward or Ping-Pong. For a walk cycle, Forward is the one you want.

For a game engine, you usually export a sprite sheet or a PNG sequence instead of a GIF. The documentation on animation also explains how tags let you mark a range of frames to separate different animations of the same sprite, for example walking and standing. Name the range of your eight frames “walk”.


Common Mistakes

Flipping the image for the second half. Flip Horizontal turns the character around. Swap near and far limbs instead and keep the walking direction.

Feet sliding off the ground line. If a supporting foot moves up or down by one pixel, the character looks like it floats. Keep a ground line visible in every frame.

No up and down movement. A body that stays at the same height looks like it’s gliding. Lowest on Contact, tallest on Pass.

Arms swinging with the legs. The arm on the same side moves against the leg. If both go forward together, the walk looks stiff and strange.

Polishing too early. Details on frame 1 are wasted if the pose changes later. Get the motion right with the dummy first.

Same colors for near and far limbs. Then you can’t tell which leg is in front, and the color swap from step 6 doesn’t work.

Too many onion skin frames. On a small sprite, three or more ghosts on each side turn into noise. One previous and one next frame is usually enough.


Quick Reference

  • 8 frames: Contact, Down, Pass, Swing, then the same poses with the other leg in front
  • Height: lowest on Contact, tallest on Pass, a triangle wave, not a smooth sine
  • Second half: copy frames 1 to 4, swap near and far colors with Replace Color (Shift+R, Selected, tolerance 0), fix the overlaps by hand
  • Aseprite: new frame Alt+N, timeline Tab, onion skin F3, play Enter, preview F7, frame properties P
  • Export: File → Export → Export As with .gif, whole-number Resize

What You’ve Learned

  • What the four key poses of a walk cycle look like and why eight frames are a good start
  • How to set up a color-coded dummy that makes the motion readable
  • How to add frames in Aseprite and use onion skinning to see neighboring frames
  • How to build the second half of the cycle from the first by swapping limbs instead of flipping the image
  • How to set frame durations, check the loop and export it as a GIF

Going Further

If you want to go deeper into walks, look at Richard Williams’ The Animator’s Survival Kit (affiliate link). It’s marked as essential in my Design Library. Its walk chapters also exist as a separate mini book, The Animator’s Survival Kit: Walks (Faber, 2021).

Next up: take the character from your silhouette exercise, put it on a dummy with near and far colors, and give it eight frames of walking.


Sources