← Blog · 6 min read

How to Animate a Sprite: A Beginner's Pixel Art Guide

Animating a sprite looks like magic, but underneath it's just a handful of still drawings shown in quick succession. If you can draw one pixel-art character, you can make it bob, blink, or walk. This guide walks you through the whole loop, from setting up frames to exporting a finished animation your game engine can read, using free browser tools so you can start right now in PaintLasso's Pixel Studio.

What sprite animation actually is

A sprite animation is a sequence of still images, called frames, played fast enough that your eye reads them as motion. That's the entire trick. A blinking icon might be two frames; a smooth walk cycle is usually four to eight. Nothing else is going on, which is good news: you don't need to learn keyframe curves or rigging to get started.

Two ideas do most of the work:

If you're brand new to drawing the character itself, it's worth reading a beginner's guide to making pixel art first so your base sprite is clean before you set it in motion.

Set up your canvas and frames

Start small. A 16x16 or 32x32 canvas forces you to think in clear shapes, and small sprites are dramatically faster to animate because there are fewer pixels to move each frame. Turn on a pixel grid so every pixel snaps cleanly, then draw your first pose on frame one.

To animate, you need a frames system rather than a single static image:

  1. Open the Pixel Studio and create a new canvas at your chosen size.
  2. Draw your base or resting pose on the first frame.
  3. Add a second frame. In PaintLasso you can duplicate the current frame so your next pose starts from the previous drawing instead of a blank canvas, which keeps the character consistent.
  4. Repeat until you have all the frames your motion needs.

Duplicating and then nudging a few pixels is the heart of frame-by-frame animation. You rarely redraw a sprite from scratch for each frame.

Draw your key poses and line them up with onion skin

Don't animate in order from frame one to the end. Instead, draw the key poses first, the extreme positions that define the motion, then fill the in-between frames. For a walk cycle the key poses are the two contact moments: one leg forward and planted, then the other. For an idle, your keys are the highest and lowest points of the breathing bob.

This is where onion skin becomes essential. Onion skin shows a faded ghost of the neighboring frame underneath the one you're editing, so you can see exactly how far a foot, arm, or hairline has moved and keep everything aligned. Without it you're guessing, and small drifts pile up into a wobble.

You can dig deeper into building motion sequences in the animation feature overview.

Build a simple idle or walk cycle

Pick the easiest win first. An idle animation is the gentlest place to start: take your base pose, duplicate it, and move the whole body down by one or two pixels on alternating frames. Add a slight squash to the shoulders and you have a believable breathing loop in two to four frames.

A walk cycle is the next step up. A readable four-frame walk follows this rhythm:

  1. Contact: front leg forward and planted, back leg stretched behind.
  2. Down/passing: body at its lowest as the rear leg swings under the hips.
  3. Contact (mirrored): the opposite leg now forward and planted.
  4. Down/passing (mirrored): the other passing position, then loop back to frame one.

Swing the arms opposite to the legs, bob the head down on the passing frames, and keep the torso steady. Four frames is plenty to start; you can add in-betweens later for smoothness. For a fuller walkthrough of timing and looping, the free animation maker guide is a useful companion.

Set the timing and play it back

Now decide how fast the frames play. Set your animation to around 8 to 12 fps and watch it loop. This is the single most underrated step, because timing changes everything: the same four frames can read as a casual stroll at 8 fps or a panicked sprint at 12.

A few practical timing tips:

Preview constantly. Most animation mistakes are invisible in a single frame and only show up in motion, so loop early and loop often.

Export a sprite sheet or GIF for your game

Once the loop looks good, export it in the format your destination needs. PaintLasso's Pixel Studio can output an animated GIF, a sprite sheet, or a PNG sequence, which covers nearly every use case:

When you export a sprite sheet, note the frame dimensions and how many frames per row, because your engine needs those numbers to cut the sheet correctly. Keep transparency on so your sprite drops cleanly over any background. Open the Pixel Studio to try the export options on a real loop.

Animate your first sprite in the browser

You don't need to install anything. Open PaintLasso's Pixel Studio, set up a few frames, turn on onion skin, and export an animated GIF or sprite sheet when your loop looks right. It's free and runs entirely in your browser, so you can go from a single drawing to a moving sprite in one sitting.

Open PaintLasso →

Related: Make pixel art sprites · Make an animated GIF · Animation & onion skin