How to Make a Pixel Art Animation for a Game
Learn pixel art basics and animate a sprite frame by frame: canvas size, palettes, outlines, onion skin, timing and exporting GIFs and sprite sheets.
How to Make a Pixel Art Animation for a Game
Pixel art looks simple, but every single pixel is a decision, and animation multiplies those decisions by the number of frames. The good news is that a few habits make the work much easier. This guide covers them while you build a small animated sprite in the free Pixel Art Editor and Animator.
Pick a small canvas
Beginners often start too big. A 16 by 16 pixel sprite is enough for a coin, a heart or a tiny character, and 32 by 32 gives room for a readable hero with a face. Small canvases force you to simplify, which is the essence of the style. You can always scale up at export: the editor multiplies every pixel into a sharp square block, so a 32 pixel sprite exported at scale 8 becomes 256 pixels wide without any blur.
Limit your palette
Pick a palette before you draw. Classic sets like PICO-8 with sixteen colours or the four greens of the original Game Boy give instant coherence because the colours were chosen to work together. A typical sprite needs only three shades per material: a base, a shadow and a highlight. Fewer colours also keep GIF files small and let the editor build an exact palette for them, so nothing shifts or dithers.
Silhouette first, details later
Fill the whole shape in one flat colour first. If you cannot tell what the sprite is from its silhouette, no amount of detail will save it. Then add a darker outline, shading on the side away from the light and one or two highlight pixels. Avoid lines with uneven steps, such as a run of three pixels followed by one and then three again; artists call these jaggies. The line tool draws mathematically clean steps that you can then adjust by hand.
Use mirror drawing for characters
Most front-facing characters, items and creatures are symmetric. With Mirror X switched on, every pixel you place is copied across the centre line, halving the work. Turn it off for the final asymmetric details, such as a sword in one hand or light coming from one side.
Animate with few frames
Game animations often use far fewer frames than people expect. An idle breathing loop can be two or three frames. A walk cycle can be four. A spinning coin can be four frames played at about 120 milliseconds each. Start by duplicating your finished first frame, then change only what moves. Onion skin shows the previous frame faintly behind the current one, so you can see exactly how far a hand or foot moves between frames.
Timing makes the motion
Every frame has its own duration. Holding a key pose a little longer, for example the top of a jump, makes motion feel weightier. Making in-between frames shorter makes it snappier. Press Play to watch the loop at its real speed and adjust the milliseconds until it feels right. Small timing changes often improve an animation more than redrawing frames.
Layers keep you flexible
Keep the background on its own layer and the character on another. You can then hide the background when exporting a transparent sprite, or redraw the character without touching the scenery. Since layers exist in every frame, the background stays consistent through the whole animation.
Export for where it will be used
For social media or a chat sticker, export a GIF. With a transparent background and fewer than 256 colours, the colours are exact. For a game engine, export a sprite sheet: all frames in a grid, plus a JSON file listing each frame rectangle and its duration, which most engines and frameworks can read with a little glue code. Save the project file as well so you can return to the layers and frames.
Importing existing art
If you already have a sprite sheet, import it and the editor slices it into frames of the current canvas size, skipping empty cells. Set the canvas size to match one frame of the sheet before importing. A single PNG can also be imported onto a layer for tracing or recolouring.
Keep practising
Redraw one object from your room every day at 16 by 16 pixels. Then animate it doing something silly in three frames. In a week you will be noticeably faster and your sprites will read better at small sizes.



