← Yop2D

How do I change the jump height?

Beginner guide · no code

Français · English · Español · Deutsch · Italiano · Português · Русский · 中文 · 日本語 · العربية

ℹ️ 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:

In 2D: the behavior window

  1. Select your hero in the scene.
  2. In the Inspector, tap ⚙ Object behavior.
  3. Choose Platform character (if it isn't already).
  4. Line Jump height: Small, Medium or High.
  5. To set it precisely: Exact value (slider or number), from 5 to 35 (Small = 13, Medium = 18, High = 22).

In 3D: the Inspector

  1. Select your 3D hero (the one that walks with the joystick).
  2. 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.