ℹ️ 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
Each level is a scene. When the hero touches the exit door, the game opens the next level's scene.
You need:
- a 2D project open in Yop2D Next.
Step 1: level 2
- Left panel, Scene tab, SCENES section: tap New scene, choose 2D scene and call it Level2.
Step 2: the exit door
- Tap the first scene in the list (level 1) to open it again.
- Put an object in the scene (an image or a Square) and name it heros.
- Select heros, tap ⚙ Object behavior in the Inspector and choose Top-down character.
- Tap Object → Interactive → Joystick.
- Put an object in the scene (an image or a Square) and name it porte.
- In the Inspector, Tag (family of objects) line, type sortie.
Step 3: level 1's nodes
- Open the Blueprint.
- If object touches Tag: Object heros, Tag (family of objects touched) sortie → Go to scene: Scene Level2
The nodes
If object touches Tagheros · sortie
→
Go to sceneLevel2
Try it
Tap Play and take the hero to the door: level 2 opens.
👉 For a nice move from one level to the next: see the A transition between two scenes recipe.