ℹ️ For Yop2D Next, the new 2D + 3D version of Yop2D (coming soon). Button and node names are those of Yop2D Next.
🔍 How do I…? All short recipes, with a search
A hero seen from above that walks up, down, left and right with the joystick, with the right animation for each direction. No gravity: it doesn't fall.
You need:
- a 2D project open in Yop2D Next.
Step 1: the hero
- Tap Object → Shapes → Image: the Library opens. Family Ninja (pixel art, top-down): tap a character, then With its animations.
- Name it heros.
Step 2: the controls
- Select heros, tap ⚙ Object behavior in the Inspector and choose Top-down character.
- Tap Object → Interactive → Joystick.
The nodes
No node needed: the behaviour does everything.
Try it
Tap Play and push the joystick in every direction: the hero walks and turns the right way.
👉 For walls: objects with the Ground / wall behaviour. The hero can't walk through them.