← Yop2D

Questions about the character and controls

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

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?

How do I add an action button (shoot, jump)?

How do I make the hero run while a button is held?

  1. Place a Action button and name it run.
  2. Object Held Down (run) → Change the behavior (your hero, Speed: Fast).
  3. End of Click → Change the behavior (your hero, Speed: Normal): when the finger lifts, it walks again.
  4. For finer speeds (mud, bonus): Speed follows a variable (in %), in ⚙ Object behavior.

How do I make a double jump?

  1. The hero (hero): Platform character, with a jump button in Jump button (see Jumping with a button). This setting does the first jump.
  2. Create a jumps variable: Whole number, starting value 0.
  3. 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).
  4. 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?

How do I play with a gamepad?

How do I make a character in pieces that walks?

  1. Object → Tools → Character workshop.
  2. 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).
  3. 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.
  4. 3 Animate: tick the Ready-made moves you want (walk, jump, attack…).
  5. 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?

  1. Object → Tools → Animated portrait → New portrait (an image of a front-facing character).
  2. 1 Face: draw around the head, the eyes and the mouth (or Find it for me). 2 Expressions: add happy, sad… with New expression.
  3. 4 In the game → Place in the scene: it blinks, tilts its head and breathes by itself.
  4. 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?

How do I know if the hero is on the ground or moving?

How do I make the hero come back at the last flag (checkpoint)?

  1. Your hero is named heros. Create 2 variables posx and posy (Decimal number).
  2. On Start → Modify Variable (posx, =heros.x) → Modify Variable (posy, =heros.y).
  3. A flag with the tag flag: If object touches Tag (heros, flag) → the same two Modify Variable.
  4. 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).
  5. 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?

👉 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.