← Yop2D

Questions about 3D

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

3D is the big new feature of Yop2D Next. You create a 3D scene with New scene → 3D scene. The settings of the whole scene (camera, sky, controls, mini-map, quality…) are behind the ⚙ Scene button, at the top of the INSPECTOR: the 3D scene settings window.

👉 The hero is the object the player controls: an object with the Third-person character or Vehicle (car, kart… driven with the joystick) behavior. A word you don't understand? See Yop2D words.

How do I make my first 3D game?

  1. RESOURCES panel, SCENES part: New scene → 3D scene, give it a name, then Create.
  2. Object → 3D shapes → Ground (plate) → Add: the ground.
  3. Object → 3D models → Animated knight: the first character you place becomes the hero (joystick, jump, camera that follows him).
  4. Object → 3D shapes → Coin to pick up, several times. In the Blueprint: If object touches Tag (Object Knight, Tag piece) → Destroy Object (Object The involved object (the touched object)).
  5. Play: joystick on the left, jump button on the right, a finger anywhere else turns the camera.
👉 To make the finished game start with this scene: touch it again in the scene list → Starting scene of the game.

How do I move, turn or resize an object in 3D in the editor?

How do I build scenery block by block?

  1. Object → 3D shapes → Block scenery: a 16 × 16 grass floor is already there.
  2. In the Inspector, touch Build…: the Build the block scenery window shows the floor seen from above and a 3D preview.
  3. Pick a block in Blocks (grass, dirt, stone, wood, ramp, stairs) and a tool: Place, Rectangle, Fill, Eraser, Eyedropper. Touch the squares.
  4. − and + change the floor level: go up one level to build a wall, a tower, a bridge.
  5. New block…: your own shape (Cube, Half block, Ramp, Steps) and its Material, or Or a model from the 3D library. Scenery size: columns, rows, levels.
👉 Everything is solid: the hero walks on it and climbs the ramps and stairs.

How do I make terrain with hills?

How do I import a 3D model (.glb, .fbx, .obj)?

How do I animate a 3D character I imported?

  1. Import your model and place it (question above). Touch it: in the Inspector, the Animations line says how many it has. A model with no animation stays still.
  2. Touch Animations: the Model animations window opens. For each moment (Idle (standing still), Walking, Run, Jump (start), In the air, Landing, Attack), pick one of the model's animations, None or Automatic (Yop2D guesses from the English name: idle, walk, run, jump…).
  3. Give it a behavior (Behaviour part, How it moves line): Third-person character, Enemy that chases the hero… It then plays the right animation by itself when it walks, runs or jumps.
  4. An animation at a precise moment (wave, dance, hit): Play a model animation (3D) node. First pick the Object, then the Animation in the list; Loop if it must repeat. Without a loop, it then goes back to its usual animations.

How do I choose the camera: behind the hero, through his eyes or top view?

How do I add Jump, Run and Action buttons in 3D?

How do I change the sky, the time of day and the fog?

How do I add a mini-map?

How do I pick up coins in 3D?

  1. Object → 3D shapes → Coin to pick up: a spinning gold coin, you can walk through it, with the tag piece. Place several (Copy in the bottom bar).
  2. Blueprint: If object touches Tag: Object = your hero (for example Knight), Tag (family of objects touched) piece.
  3. → Destroy Object: Object The involved object (the touched object) → Add to Variable: variable score, 1.
👉 You create the score variable in GAME VARIABLES: see Create and use a variable. To show it, see the HUD question below.

How do I make a 3D enemy that patrols and attacks?

How do I stop the hero from falling into the void (or let him fall)?

How do I show a score or lives (a HUD) on a 3D game?

  1. RESOURCES panel, SCENES part: New scene → 2D scene, name it HUD. Add a text (Object → Texts → Text) named score_label.
  2. Blueprint of the HUD: When Variable Changes (variable score) → Modify Text: Object score_label, =score.
  3. Blueprint of the 3D scene: On Start → Open a HUD: Scene HUD.
  4. Play: the HUD shows on top of the 3D, and the text changes with each point won.
👉 A health bar above a 3D character, without a HUD: Inspector, Health part, Above it (during the game) → Health bar.

How do I add a lamp, a torch or a spotlight?

How do I change an object's material (grass, wood, metal, water)?

How do I put a sword in the character's hand?

  1. Place the sword in the scene (an imported model, or a simple shape like a stretched Cylinder). Turn it in the editor the way it should be held.
  2. Blueprint: On Start → Attach to a hand (3D): Object = the sword, Object B = the character (an animated 3D model), How: Attach, Where: Right hand.
  3. The sword follows every move of the character. Other places: Left hand, Head (a hat), Back (a bag), Right foot, Left foot.
  4. To let go: the same node with How: Detach. If the hand is not found: write the bone's name in Exact bone name (optional).

How do I make a movie camera (a short cutscene)?

How do I know what is in front of an object (or whether it sees the hero)?

How do I make a 3D car game?

How do I make my 3D game smoother on a small phone?

👉 It doesn't work as expected? See My game doesn't work and Where to find…?.