← Yop2D

Which behaviour should I choose for my object?

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

The behaviour says how an object moves on its own: a wall that doesn't move, a hero who walks and jumps, an enemy going back and forth… No node needed for that.

You need:

Opening the window

Tap the object, then in the Inspector the ⚙ Object behavior button. ① HOW DOES IT MOVE? (one choice) part:

The settings and the extra boxes

In 3D

Tap the object. In the Inspector, Behaviour part, How it moves line: Scenery (solid), Passable (coin to pick up, zone…), Third-person character, Patrolling enemy (back and forth), Enemy that chases the hero, Vehicle (car, kart… driven with the joystick), Physics object (falls, rolls, bounces), Moving platform (back and forth, elevator).

The nodes

To change the behaviour during the game (speed, jump…): the Change the behavior node.

👉 Nodes always win: if a node moves the object (Move, Push, Glide to, Impulse, Change x / y), it does what the node says, even if the behaviour or the elevator says otherwise.