ℹ️ 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 ⚙ Object behavior window opens from the Inspector: tap an object, then this button. Here are the most asked questions about its settings. To pick the right behaviour, see Which behaviour to choose?.
👉 A word you don't understand? See Yop2D words.
How do I make a ladder?
- Place the ladder (an image or a Square). Tap it, then ⚙ Object behavior: keep Scenery and tick A ladder, in the ③ IT IS ALSO… (several choices) part.
- Your hero must be a Platform character, with Can climb ladders set to yes (it already is at the start).
- In the game: put the hero in front of the ladder and push the joystick up or down. With buttons: Up button and Down button.
- To let go of the ladder: jump, or push the joystick sideways. The On the ladder animation plays by itself if your character has one (a name with “climb” or “grimpe”).
How do I make a platform you can jump through from below?
- Tap the platform → ⚙ Object behavior → Ground / wall, then tick Pass-through from below.
- The hero jumps through it from below and lands on top, like in many platform games.
- This box only appears for Ground / wall.
How do I make an elevator?
- Choose Elevator (back and forth): the platform moves by itself and carries what stands on it. It starts from its place in the scene.
- It starts going: Up, Down, Right or Left. Distance: from Short to Very long. Also set Speed and Pause at each end.
- It starts: Right away, or When someone steps on.
- If someone is crushed: Push it away, Restart the scene or Remove a life (you need a “vies” variable).
- Step by step: A moving platform.
How do I make an object you can pick up?
- The Collectable box is not enough: in Yop2D Next, nodes do the picking up.
- Give the object a tag (for example piece), then: If object touches Tag (your hero, tag piece) → Destroy Object (The involved object (the touched object)) → Add to Variable (the score, +1).
- For an inventory: Add to inventory (a variable of type Inventory list), then hide the object with Visibility instead of destroying it: If in inventory needs to find it.
- Full examples: Show a score, A door and a key.
How do I play by tilting the phone?
- A rolling ball: ⚙ Object behavior → Realistic physics, Object type set to Normal (falls, can be pushed), then tick Marble: rolls when you tilt the phone. It rolls without falling (top-down view) and bounces off Ground / wall objects.
- A character: make it a Top-down character, Controls set to None. Then in the Blueprint: Every frame → Push object with Add X
=inclinaison.x * 6and Add Y=inclinaison.y * 6. inclinaison.xandinclinaison.ygo from -1 to 1. The “zero” is the way the player holds the phone when the game starts. Reset the tilt to zero sets it again (for example with a “Recenter” button).- You need a real phone or tablet: try it with Play.
How do I move the hero with buttons instead of the joystick?
- Place your buttons: Object → Interactive → Action button (or any image). Give them clear names: left, right, jump…
- Tap the hero → ⚙ Object behavior → Controls: Buttons.
- Choose the object for each line: Left button, Right button; for a top-down hero or one that climbs, also Up button and Down button; for a platform hero, Jump button.
- In the game, the hero moves as long as the finger stays on the button. Several fingers at once work.
What is the collision area (“Where it collides”) for?
- It is the part of the object that bumps into walls and touches other objects (also for If object touches Tag).
- Whole object: the whole image. Custom: a rectangle you set, smaller than the image.
- Where: ④ CONTACT AREA part, Where it collides line → Custom, then Zone width, Zone height, Zone X offset, Zone Y offset. You can also drag the handles on the object.
- Useful when the image has empty space around it, hair or a sword: the hero gets stuck, or gets hit from too far away.
How do I choose the animations that play by themselves?
- For a Platform character or a Top-down character: ANIMATIONS PLAYED AUTOMATICALLY part, Automatic animations line set to yes.
- Yop2D finds each animation by its name: “walk” (or marche), “idle” (repos), “jump” (saut), “climb” (grimpe), “crouch” (accroupi). Several characters? Start with the object's name: “hero_walk”.
- To choose another one, tap the line (Standing still, Walking, In the air, On the ladder, Down on the ground), then the animation. Animation speed sets their speed.
- On no, you choose yourself with the Play animation node. Step by step: Animation that follows the movement.
What is “Speed follows a variable (in %)” for?
- The object's speed follows a variable, as a percentage: 100 = the speed you set, 50 = half as fast, 0 = it stops moving, 200 = twice as fast.
- Where: under Speed, line Speed follows a variable (in %) → choose your variable. Create it first (for example energy, starting value 100).
- Then your nodes change the variable: in mud, Modify Variable energy = 50; with a bonus, 150. See Creating and using a variable.
What is “Carries what stands on it” for?
- For a Ground / wall that you move yourself: the hero standing on it moves with it, instead of staying in place and falling off.
- Where: Ground / wall, then tick Carries what stands on it.
- Move this ground with Play movement (steps) (tool Create a movement) or Follow the path (tool Create a path).
- Simpler: Elevator (back and forth) moves by itself and already carries what stands on it.
How do I change the behaviour during the game?
- The Change the behavior node (category Movements & AI).
- It changes How it moves (from Scenery to Dragged with a finger), the Speed, the Jump height, the ladder and Collectable. (do not change) keeps the value.
- Example: the player pulls a lever → the crate switches to Falls and bounces and falls.
- It does not change the Controls, and offers neither Elevator (back and forth) nor Realistic physics. For a speed that changes smoothly: Speed follows a variable (in %) (above).
What are the directions (4, iso view, left / right) for?
- It is a setting of the Top-down character, Directions line. The hero always moves in every direction: this choice says which animations it uses.
- 4 (up down left right): one animation per direction, for example “walk_up”, “walk_down”, “walk_left”, “walk_right” (and “idle_up”…).
- Iso view: for a diamond-tile map. 4 diagonal directions (“walk_ne”, “walk_nw”, “walk_se”, “walk_sw”) and it moves up or down more slowly, like on a diamond.
- Left / right: a single animation, flipped when it goes left. Step by step: A top-down game.
👉 For speed and jump height, see Change the jump height and Where is…?. The character and its controls: Questions about the character.