← Yop2D

How to animate a character from a single image?

Beginner guide · no code

Français · English · Español · Deutsch · Italiano · Português · Русский · 中文 · 日本語

Drawing a walk cycle frame by frame takes a very long time. With the Character workshop, a single image of your character seen from the side is enough: Yop2D cuts it into parts (head, body, arms, legs), moves the joints and makes the frames of the Idle, Walk, Run, Jump, Attack and Hit animations.

You need:

Step 1: open the workshop and pick the image

  1. Open the Assets window (Resources panel).
  2. At the top, touch the Character button, next to Sheet.
  3. Touch Choose the character picture.
  4. Does your character look left? Touch Flip the picture (mirror): it must look to the right to work, and your final images will look left as they should.
👉 At any time, the ↶ and ↷ buttons in the top bar undo and redo what you just did.

Step 2: place the skeleton

  1. Touch Place the skeleton for me: Yop2D tries to guess where the neck, shoulders, elbows, hands, hips, knees and feet are.
  2. Fix whatever is wrong: slide each dot onto the right joint. A magnifier appears above your finger so you can see what you are doing.
  3. Touch Next ▶.
Step 1 of the Character workshop: the skeleton placed on the character, with the magnifier above the finger
Screenshot of the Character workshop: the dots sit on the joints; the magnifier helps to place the point you are dragging.

Step 3: outline each part

  1. Touch a part in the list or on the image (head, torso, upper arm, forearm, thigh, calf, foot…).
  2. Drag its points so the outline follows the drawing. A small "+" in the middle of a side adds a point; Remove the chosen point removes one.
  3. Do not want to do it all by hand? Automatic outline suggests an outline for the chosen part.
  4. For a short sleeve, tick This part stays on the body. Leave it unticked if the whole arm must move, otherwise you will see two arms.

Step 4: fill the holes (optional)

When an arm or a leg moves, a hole appears where it used to be. This step shows the character in motion so you can see the holes.

  1. 1. Pick the source area: touch a clean area of the drawing, for example the clothes.
  2. 2. Paint over the hole: Yop2D copies the area you picked. Two other ways: 2b. Paint with the area's color, or 2c. Fill by placing points around the hole, then Fill the area.
  3. 3. Eraser: removes what sticks out or hangs.
  4. If you make a mistake, Undo last stroke or Clear all.

Step 5: choose the movements

  1. Choose a movement: Idle, Walk, Run, Jump, Attack or Hit. The preview loops.
  2. Set the Speed (frames per second) and the Movement size (in percent): the bigger it is, the more the arms and legs move.

Step 6: create the images

  1. Write the Character name.
  2. Tick the movements to create.
  3. Touch Create the pictures. They are stored in the Images folder of your project, under the character's name, and the animations are added to the list.
👉 The animation names are chosen so that the "Platform character" behavior recognizes them by itself: walk, jump, idle… chain together with no extra node.

Playing the animations in your game

  1. Place your character in the scene.
  2. In the Blueprint, add “Play animation” and choose the animation you created (the walk, for example), or give the object the "Platform character" behavior (see the guide).

Limits to know

If it does not work