ℹ️ 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
Your hero, its on-screen controls and its moves: here are the most asked questions. The hero's settings are in ⚙ Object behavior (see Questions about Behaviour).
👉 A word you don't understand? See Yop2D words.
How do I add a joystick?
- Object button (+) → Interactive → Joystick, then Add. Place it at the bottom left of the screen.
- Your hero must be a Platform character or a Top-down character, with Controls set to Joystick: it follows it by itself, no node needed.
- In 3D, the Third-person character already has its joystick on screen. For another 3D object: the Move with the joystick (3D) node.
- For your own nodes: If joystick, or the formulas
=joystick.xand=joystick.y(from -1 to 1).
How do I add an action button (shoot, jump)?
- Object → Interactive → Action button: a round button, like on a gamepad. Name it, for example shoot.
- In the Blueprint: On Object Click (Object shoot) → whatever you want: Shoot an object, Play sound…
- To keep shooting while the finger stays on it: Object Held Down → Cooldown (0.3 second) → Shoot an object.
- To jump, no node needed: Jumping with a button. To shoot: Shooting a projectile.
How do I make the hero run while a button is held?
- Place a Action button and name it run.
- Object Held Down (run) → Change the behavior (your hero, Speed: Fast).
- End of Click → Change the behavior (your hero, Speed: Normal): when the finger lifts, it walks again.
- For finer speeds (mud, bonus): Speed follows a variable (in %), in ⚙ Object behavior.
How do I make a double jump?
- The hero (hero): Platform character, with a jump button in Jump button (see Jumping with a button). This setting does the first jump.
- Create a jumps variable: Whole number, starting value 0.
- On Object Click (jump) → If on ground (hero) → False output → If a variable… (jumps equals 0) → True output → Impulse (jump) (hero, -15) → Modify Variable (jumps = 1).
- Every frame → If on ground (hero) → True output → Modify Variable (jumps = 0): back on the ground, it can jump twice again.
How do two players play on the same tablet?
- Hero 1: Controls set to Joystick, with a Joystick on the left of the screen.
- Hero 2: Controls set to Buttons, with its buttons on the right: Left button, Right button, Jump button…
- Each player puts their fingers on their own side: several fingers at once work.
- Yop2D Next cannot yet link a second joystick to a second hero: heroes set to Joystick all follow the first one.
How do I play with a gamepad?
- Connect the gamepad (USB cable or Bluetooth): nothing to set, it works right away, in 2D and in 3D.
- The left stick or the D-pad act like the on-screen joystick: the hero set to Joystick follows them.
- Button A = jump, B = action, X = run: they act like a finger on your game's buttons whose name starts with jump (or saut), action, run (or courir). B also starts the On Action button event.
- In 3D, the right stick turns the camera.
How do I make a character in pieces that walks?
- Object → Tools → Character workshop.
- New: cut up my image (a single image) (a character seen from the side), or New: I already have the pieces (one image per piece).
- Cut out the pieces with your finger (head, body, arms, legs), then place the circles on the joints: Place it for me does it for you.
- 3 Animate: tick the Ready-made moves you want (walk, jump, attack…).
- 4 In the game: Place in the scene (it is animated live), or Create the animations: animations that the Platform character recognises by itself.
How do I make a portrait that talks and blinks?
- Object → Tools → Animated portrait → New portrait (an image of a front-facing character).
- 1 Face: draw around the head, the eyes and the mouth (or Find it for me). 2 Expressions: add happy, sad… with New expression.
- 4 In the game → Place in the scene: it blinks, tilts its head and breathes by itself.
- Nodes: Make it talk (portrait) (the mouth moves for the chosen time), Change the expression (portrait), Tilt the head (portrait). With Say a line, the mouth already moves by itself.
How do I make a character look or aim at something?
- For a character from the Character workshop placed in the scene (not a simple image).
- Look at (character): it turns its head toward the finger or toward an object (Object B), without stopping walking.
- Aim with the arm (character): it points its front arm toward the finger or the object, to shoot or to show. Set “On” to no to stop.
- For a simple image, the whole object turns: Face towards (a turret aiming at the player).
How do I know if the hero is on the ground or moving?
- If on ground: True output if the object stands on a ground (Ground / wall, platform), False if it is in the air. Also works in 3D.
- If moving: True if the object has moved since the previous frame.
- Put them after Every frame or after a tap: jump only on the ground, footstep sounds only when it walks…
How do I make the hero come back at the last flag (checkpoint)?
- Your hero is named heros. Create 2 variables posx and posy (Decimal number).
- On Start → Modify Variable (posx,
=heros.x) → Modify Variable (posy,=heros.y). - A flag with the tag flag: If object touches Tag (heros, flag) → the same two Modify Variable.
- A Zone at the very bottom of the level, with the tag void: If object touches Tag (heros, void) → Move Object (heros, X
=posx, Y=posy). - In 3D, it is ready-made: place a Checkpoint (Objects panel → Shapes) and choose Void around the grounds in 3D scene settings. A hero who falls comes back there by itself, and When the hero falls starts.
How do I make a trampoline that sends the hero very high?
- Place the trampoline, give it the tag trampoline and the Ground / wall behaviour: the hero lands on it.
- If object touches Tag (hero, trampoline) → Impulse (jump) (hero, -28).
- A negative number goes up: the bigger it is, the higher the jump (a Medium jump is about -18).
- To bounce only when it falls onto it: the Side touched setting of the same node, set to the bottom.
👉 Already explained step by step: Jumping with a button, Change the jump height, Animation that follows the movement, A camera that follows the hero, A top-down game, An object that falls.