ℹ️ 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?
- RESOURCES panel, SCENES part: New scene → 3D scene, give it a name, then Create.
- Object → 3D shapes → Ground (plate) → Add: the ground.
- Object → 3D models → Animated knight: the first character you place becomes the hero (joystick, jump, camera that follows him).
- 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)).
- 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?
- Touch the object: a bar appears at the bottom of the view: Drag (along the ground), Height (up, down), Rotate, Size, To ground (put it back on the ground), Copy.
- Switch on a tool, then slide a finger anywhere in the view: the object follows. With Rotate, the 15° steps button turns in small steps.
- The exact numbers are in the Inspector: Position (cm), Rotation (degrees), Size. 100 cm = 1 meter; Y = height.
- Without a tool: one finger on empty space turns around the scene, two fingers zoom and move the view. Several objects at once: Choose button.
How do I build scenery block by block?
- Object → 3D shapes → Block scenery: a 16 × 16 grass floor is already there.
- In the Inspector, touch Build…: the Build the block scenery window shows the floor seen from above and a 3D preview.
- Pick a block in Blocks (grass, dirt, stone, wood, ramp, stairs) and a tool: Place, Rectangle, Fill, Eraser, Eyedropper. Touch the squares.
- − and + change the floor level: go up one level to build a wall, a tower, a bridge.
- 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?
- RESOURCES panel, Objects tab, Shapes family → Terrain: a 40 m grass terrain with hills. (It is not in the Object window.)
- Inspector, RELIEF part: Hill height (meters) (0 = completely flat), Hill size (Small, Medium, Large), Terrain size (meters). New random shape draws other hills.
- MATERIAL part: Grass, Sand, Snow, Dirt… The hero, enemies and cars go up and down the hills.
- In the same family: Ramp, Stairs, Water.
How do I import a 3D model (.glb, .fbx, .obj)?
- Object → 3D models → Import a 3D model → Add: the 3D models window opens on My models. Touch Import and pick the file on your tablet.
- .glb is best (one single file with its textures). These work too: .gltf, .fbx, .obj, or a .zip that contains the model and its textures.
- The model goes into My models: touch it to place it in the scene. You also find it in RESOURCES → Objects → My models.
- 40 MB at most. Yop2D warns you if the model is very detailed: for a character, aim for 5,000 to 30,000 triangles.
- Your character walks sideways or backwards? Inspector, Model's front line: try Left, Right or Behind.
How do I animate a 3D character I imported?
- 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.
- 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…).
- 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.
- 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?
- ⚙ Scene (at the top of the Inspector) → HERO CAMERA part: Behind the hero (third person), Through their eyes (first person) or Top view. Distance: 0 = based on the hero's size.
- These choices only work if the scene has a hero (Third-person character or Vehicle (car, kart… driven with the joystick)). Without a hero, the game keeps the editor view: View → Use this view for the game.
- During the game: Hero 3D camera node (for example: through his eyes when he enters a house). Other cameras: Camera following an object (3D), Free camera (3D).
How do I add Jump, Run and Action buttons in 3D?
- ⚙ Scene → HERO CONTROLS part, Ready-made choice: Yop2D places the joystick and the buttons during the game.
- Tick Jump button (already ticked), Action button (attack, talk, open…), Run button (hold down). Also set Joystick size, Button size, Joystick on the right (left-handed), Transparency.
- The Action button starts the On Action button event in the Blueprint, with an animation of your choice: Hit (sword, fist), Cast a spell or No animation.
- Your own buttons: From my HUD choice. Place a Joystick and buttons in your HUD scene, and name the buttons Jump, Run, Action.
How do I change the sky, the time of day and the fog?
- ⚙ Scene → 3D scene settings: the scene changes live next to it.
- TIME OF DAY: Morning, Noon, Evening, Night set the sun, the light and the sky in one go. Then adjust SUN and AMBIENT LIGHT if you like.
- SKY: Gradient sky, Solid color or Image (an image twice as wide as it is high, like a panoramic photo).
- FOG: Thickness (0 % = none) and Fog color.
- During the game: 3D atmosphere node (night falls when the hero enters the forest).
How do I add a mini-map?
- ⚙ Scene → MINIMAP part: Top left or Top right (None to remove it).
- During the game, a small round map seen from above shows 25 m around the hero: scenery in gray, enemies in red, coins in yellow, checkpoints in blue.
- It only appears during the game, not in the editor.
How do I pick up coins in 3D?
- 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).
- Blueprint: If object touches Tag: Object = your hero (for example Knight), Tag (family of objects touched) piece.
- → 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?
- Object → 3D models → Skeleton enemy: it walks its round, runs toward the hero when it sees him and attacks up close. It already has the tag ennemi.
- Inspector, Behaviour part: Speed (meters per second), Sees the hero from (meters, 0 = always), Attacks within (meters, 0 = never), One attack every (seconds), Patrol length (meters, 0 = stays in place). It walks in the direction it faces: change the 2nd number (Y) of Rotation (degrees).
- When it attacks, the When an enemy attacks event starts: connect it to Add to Variable (lives, -1).
- Any model can become an enemy: How it moves → Enemy that chases the hero, or Patrolling enemy (back and forth) (straight back and forth, no chasing).
How do I stop the hero from falling into the void (or let him fall)?
- At the start, a 3D scene has an invisible floor everywhere: you never fall, even without ground.
- For a game with gaps: ⚙ Scene → GROUND part → Void around the grounds. A hero who leaves the ground falls. Invisible ground everywhere puts the invisible floor back.
- He comes back to the last Checkpoint he touched (RESOURCES → Objects → Shapes → Checkpoint), otherwise to his starting place.
- At each fall, the When the hero falls event starts: connect it to Add to Variable (lives, -1).
How do I show a score or lives (a HUD) on a 3D game?
- RESOURCES panel, SCENES part: New scene → 2D scene, name it HUD. Add a text (Object → Texts → Text) named score_label.
- Blueprint of the HUD: When Variable Changes (variable score) → Modify Text: Object score_label,
=score. - Blueprint of the 3D scene: On Start → Open a HUD: Scene HUD.
- 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?
- RESOURCES panel, Objects tab, Lights family: Lamp (round light), Torch (flame), Spotlight (cone of light).
- Inspector, LIGHT part: Kind, Strength (%), Range (m), Flickers like a flame; higher up, its Color.
- A light shows best at night: ⚙ Scene → TIME OF DAY → Night. A spotlight shines downward: turn it (Rotation (degrees), X or Z). No more than 8 lights close to each other.
- During the game: Set a light (3D) node: Turn on, Turn off, color, strength, range, smoothly with a duration.
How do I change an object's material (grass, wood, metal, water)?
- Touch a shape (cube, ball, floor, ramp, terrain…): Inspector, MATERIAL part: Solid color, Grass, Stone, Sand, Wood, Bricks, Dirt, Snow, Metal. Pattern size (meters) makes the pattern bigger or tighter.
- Glows (lights up its surroundings): for a magic ball, a crystal, a lamp.
- Water is a separate object: RESOURCES → Objects → Shapes → Water (a see-through surface with ripples; the hero moves slower in it).
- During the game, or on an imported model: Object material (3D) node (shiny or matte, metal, its own light).
How do I put a sword in the character's hand?
- 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.
- Blueprint: On Start → Attach to a hand (3D): Object = the sword, Object B = the character (an animated 3D model), How: Attach, Where: Right hand.
- The sword follows every move of the character. Other places: Left hand, Head (a hat), Back (a bag), Right foot, Left foot.
- 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)?
- Cinema camera (3D) node: Object = what you want to show (a door opening, a boss arriving), Duration (seconds), Distance (meters), Height (meters). Then the camera goes back to the hero by itself.
- The hero waits = yes: the player can't move during that time. The next nodes start afterwards.
- Example: the hero touches a lever → Move smoothly (3D) (the door goes up) → Cinema camera (3D) on the door.
- Several shots: Camera in place of an object (3D) (small hidden objects act as cameras) or Free camera (3D). Hero 3D camera then gives the camera back to the hero.
How do I know what is in front of an object (or whether it sees the hero)?
- Ray: what is in front? (3D): an invisible ray leaves the object (Direction: In front, Behind, Left, Right, Top, Bottom) up to the Range (meters). Hits something output: the object hit becomes the involved object; otherwise Nothing.
- Only objects with the tag (empty = all): other objects are ignored (a wall in front? a laser shot?).
- If the object sees another one (3D): does the object see Object B? Close enough, in its Field of view (degrees, 360 = all around), not hidden behind a wall (Walls block the view). Outputs Sees it / Doesn't see it.
- Put them after Every frame to check all the time (a guard who raises the alarm). All objects around: For each nearby object (3D).
How do I make a 3D car game?
- The easiest way: RESOURCES → Objects → Characters → Car. It becomes the hero if there isn't one yet: joystick up = speed up, down = brake then reverse, left / right = steer. The camera moves back behind it.
- Inspector: Top speed (meters per second) and Handling (%). Your own car model: How it moves → Vehicle (car, kart… driven with the joystick).
- Add a Terrain with hills, some Falling crate and Bouncing ball: the car pushes them.
- Examples to open: home screen → Example games → Car slalom, Race in the hills.
- To drive something else (a marble, a spaceship): Move with the joystick (3D) and Camera following an object (3D), with a Joystick in the HUD.
How do I make my 3D game smoother on a small phone?
- ⚙ Scene → QUALITY LEVEL: Low (the start of every new 3D scene). And: SHADOWS None, DRAW DISTANCE Near, LIGHT Simple (fast).
- QUALITY part: tick Limit to 30 frames per second (steadier, the phone heats up less) and lower Image sharpness.
- Menu → Game settings → 3D image quality: Automatic lowers the sharpness only if the player's device can't keep up. Player ⚙ button (3D scenes): the player chooses Low, Medium or High himself.
- Fewer objects and animated characters, less detailed models. The Load gauge of the 3D editor tells you if your scene is too heavy for your device (green, orange, red): touch it for advice.
👉 It doesn't work as expected? See My game doesn't work and Where to find…?.