How to animate a single character image for a 2D game

To animate a single character image, give it a skeleton (a rig) and move the skeleton instead of redrawing the picture. Each part of the image is attached to a bone, so a walk cycle is a set of poses that the rig plays back, and every frame is made from your one original drawing. You then export those frames as a sprite sheet that Unity, Godot or GameMaker can play.

What do you need to start?

How do you go from one image to a sprite sheet?

These are the steps in SpriteRig, which runs in the browser. The idea is the same in any rigging tool; the tools roundup lists others.

  1. Prepare one full-body picture. Use a front-facing character with the whole body in view, the arms held away from the body, and a transparent or plain background.
  2. Upload it and let the skeleton snap on. Open Rig in SpriteRig and upload the image. The auto-rig finds the body and places 15 joints on it, from the top of the head to the ankles.
  3. Fix any joint that sits wrong. Drag a joint to where it belongs on the character, for example an elbow that landed on the sleeve. The rig updates when you let go.
  4. Play an animation. Press Walk to see the walk cycle on your character, or Idle or Wave. Use the speed slider to make it faster or slower.
  5. Export a sprite sheet. Choose Unity, Godot 4 or GameMaker, tick the animations you want, pick a frame size and frames per second, and download the zip.

How do you make a walk cycle?

A walk cycle is a short loop: one leg swings forward while the other pushes back, the arms swing the opposite way, and the last frame leads back into the first. With a rig you don't draw those frames. The built-in Walk animation moves the skeleton through the loop and your picture follows it. For a character seen from the front, the feet step on the spot; for a character drawn from the side, the legs stride.

If a knee or foot looks wrong while it plays, the joint is usually sitting in the wrong place. Go back to the rig, drag that joint, and play the walk again.

How do you get it into your engine?

Unity

The Unity export is one sprite sheet with a JSON file that lists each animation's frames. Slice the sheet by cell size and build one clip per animation. Steps: import sprite sheets into Unity.

Godot 4

The Godot export includes a ready scene and a SpriteFrames resource, so the animations already play when you drag the scene in. Steps: import animated sprites into Godot 4.

GameMaker

The GameMaker export is one strip image per animation, named so GameMaker splits it into frames by itself. Steps: import sprite sheets into GameMaker.

When is one image not enough?

A rig bends and moves the parts of one drawing. It can't show the back of a character it has only seen from the front. For a move that changes the viewing angle, you need new drawings: see skeletal animation vs frame-by-frame for how to choose, and AI sprite sheets for having those frames drawn for you.

Frequently asked questions

Can I animate a character from just one image?
Yes. A rig moves the parts of the one picture you already have, so a single front-facing, full-body image is enough for an idle, a wave, a walk and other moves that keep the same viewing angle.
Does this work with AI-generated characters?
Yes. An AI-generated image is treated like any other picture. It rigs best when the whole body is visible, the arms are away from the body and the background is plain or transparent.
How do I make a walk cycle from a single image?
Rig the image, then play the built-in Walk animation: the skeleton moves the legs and arms of your picture through a looping walk. Export it as a sprite sheet and your engine plays the frames in order.
What can't be animated from one image?
Anything that shows the character from a new angle, such as turning around or a spinning kick. Those need new drawings, either by hand or as an AI sprite sheet that redraws the character in every frame.
Is it free?
Rigging, posing and export are on SpriteRig's free plan, with the idle, wave and walk animations. Run, jump, punch, kick, hurt, death, crouch and block are part of the Indie and Studio plans.

Rigging, posing and export are included on the free plan. Animate your first character free.