ℹ️ 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
In 2D, the jump height is not a line of the Inspector: it is in the ⚙ Object behavior window. In 3D, it is the Jump strength line of the Inspector.
You need:
- a hero that already jumps (see the recipe Jump with a button).
In 2D: the behavior window
- Select your hero in the scene.
- In the Inspector, tap ⚙ Object behavior.
- Choose Platform character (if it isn't already).
- Line Jump height: Small, Medium or High.
- To set it precisely: Exact value (slider or number), from 5 to 35 (Small = 13, Medium = 18, High = 22).
In 3D: the Inspector
- Select your 3D hero (the one that walks with the joystick).
- In the Inspector, line Jump strength: from 0 to 40 (8.5 at the start). The bigger the number, the higher it jumps.
The nodes
To change the height during the game (for example a bonus that makes the hero jump higher): node Change the behavior, setting Jump height: High. Leave the other settings on (don't change).
If object touches Tagheros · bonus
→
Change the behaviorheros · Jump height: High
Try it
Tap Play and jump. Try Small, then High, to feel the difference.
👉 A very high jump can take the hero off the screen: add a camera that follows the hero.