← Yop2D

Yop2D node reference

Français · English · Español · Deutsch · Italiano · Português · Русский · 中文 · 日本語 · العربية

Yop2D is a free, no-code 2D game engine for Android. A game's logic is built with nodes (visual blocks) linked together in the Blueprint: events start a chain, then actions and conditions follow. This page describes the 313 nodes of the editor, with their settings (inputs) and outputs.

Categories

Events

On Start

Runs only once, as soon as the scene starts.

Example: place the enemies, show the starting score or start the music.

Every frame

Runs over and over, on every frame of the game (about 60 times per second).

Example: follow the finger or check a condition all the time. Avoid putting “Play music” or “Run one of my nodes” under it.

End of Click

Runs when the player lifts their finger from the screen, anywhere.

Example: stop shooting when the screen is released.

On Object Click

Input: Object

Runs when the finger touches the chosen object. With a tag ("# card") as the target, it fires for every object with that tag: the touched object becomes the involved object.

Example: a “Jump” button, opening a chest, picking an answer.

Object Released

Input: Object

Runs when the finger is lifted above the chosen object.

Example: confirm a button only when it is released.

Object Held Down

Input: Object

Repeats on every frame as long as the finger stays on the chosen object.

Example: left / right buttons: while you hold them, the character moves.

Finger held down

Repeats on every frame as long as a finger is on the screen, anywhere.

Example: make a ship climb while the screen is held (use doigt.x and doigt.y in formulas).

Back button pressed

Runs when the player presses the Back button of their phone (arrow or swipe gesture). Great for opening a pause menu or going back to the previous screen. Without this node, the Back button does nothing during the game.

Example: Back → “Pause the game”, then show a “Resume / Quit” menu.

Phone shaken

Needs Yop2D version 1261 or newer (the last number of the version, for example 1.0.1261). If your version is older, update Yop2D. Runs when the player shakes their phone or tablet. Great for shuffling, rolling a die or knocking objects down. It takes two quick, sharp jolts: a simple move is not enough.

Example: A die: “Phone shaken” → “Set a property” on the die's text with random(1, 6).

On every new scene

Runs every time a new scene opens. Made for the "Global logic" (which runs in every scene): for example, placing the chosen army on each map. In an ordinary scene, "On start" is enough.

Drag Start

Input: Object

Runs when the player starts dragging the chosen object (it must be “Movable (draggable in Play mode)”).

Example: enlarge a card when it is picked up.

Drag End

Input: Object

Runs when the player drops the object they were dragging.

Example: check whether a puzzle piece is in the right place.

Collision A/B

Inputs: Object A, Object B

Runs once, when object A starts touching object B. They must separate before it can run again. This is also the event to use for “entering a zone”.

Example: the player touches the finish zone → next level.

Exit Zone

Inputs: Object A, Object B

Runs once, when object A stops touching object B (it leaves the zone).

Example: close a door when the player walks away.

On Hover

Input: Object

Runs when the finger, sliding across the screen, reaches the chosen object.

Example: light up a button when the finger passes over it.

End of Hover

Input: Object

Runs when the finger leaves the object it was over.

Example: turn off a button's highlight.

On Impact (Physics)

Input: Object

Runs when the chosen object (dynamic physics) lands on a floor or bounces.

Example: play a landing sound or shake the camera.

When Variable Changes

Input: Variable

Runs every time the value of the chosen variable changes.

Example: when “vie” (health) changes, update the health bar.

Local Event

Input: Event name

Your own event, with the name you choose. It is started by the “Call event” node in the same Blueprint.

Example: a “GameOver” event called from several places.

On Action Click (Adventure)

Runs when the player presses the scene's “BtnAction” object (action button).

Example: talk to a character or open a door in an adventure game.

If object touches Tag

Inputs: Object, Tag

Runs once per contact when the chosen object touches an object with this tag. The touched object becomes the “Implied Object”. The "Touched side" setting limits the event to one side of the object (top, bottom, left, right): "top of the object" means something comes down on it, for example an elevator crushing it. "Anywhere" (default) ignores the side.

Example: the player touches a coin (tag “piece”) → destroy the involved object and add 1 to the score.

When an object has no health left

Input: Object

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Triggers when an object reaches zero health points (“Remove health points” node). Choose the object, or “# tag”. For example: add 10 to the score, launch an explosion.

When the hero falls

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Triggers when the 3D hero falls into the void: they come back by themselves to the last checkpoint touched (Objects -> Shapes -> Checkpoint), or to their starting place. For example: link to “Add to a variable” (lives, -1).

When an enemy attacks

Input: Object

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Triggers when a 3D enemy chasing the hero attacks them up close (the enemy's “Attacks within” setting). Choose the enemy, or “# tag” for all enemies with a tag. For example: link to “Add to a variable” (lives, -1).

When the video ends

Input: Object

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Fires when the video of a “Video” object reaches the end (unless it loops). Example: after the intro cutscene, “Change scene” to the menu.

When an interface element changes

Input: Object

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Fires when the player changes the value of an interface element: drop-down list, single choice, tabs, number − / +, scrolling list, inventory, stars, switch, checkbox, slider (when released). The choice number is read with =name.progression (from 0), its text with =name.texte.

When the player has finished writing

Input: Object

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Fires when the player has finished writing in a text field (taps OK). The text is already in the field's variable, and can also be read with =name.texte. For example: connect to “Condition” (reponse = 42) to check an answer.

When a rope is cut

Input: Object

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Fires when the finger slices a rope (“Link two objects” node, “The finger can cut it” = yes). The object tied to the rope becomes the involved object. Choose the object, or “# tag”. For example: play a “snip” sound.

When a drawing is finished

Input: Object

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Fires when the player lifts the finger after a line (node “Draw with your finger”): the drawing has just become a physics object, it is the involved object. Choose “# tag” (the drawings' tag, “dessin” by default). For example: wake the ball up at the first drawing.

Scene & HUD

Go to scene

Input: Scene  →  Output: none (end of script)

Leaves the current scene and goes to the chosen scene. This node ends the script.

Example: go to the “Well done!” screen after the last level.

Go to scene (by name)

Input: Scene name  →  Output: none (end of script)

Goes to the scene whose name you type (or a formula giving that name). This node ends the script.

Example: a formula like ="Level" + level to choose the level with a variable.

Next scene

Output: none (end of script)

Goes to the scene placed just after in the scene list. This node ends the script.

Example: the player reaches the finish → next level.

Previous scene

Output: none (end of script)

Goes to the scene placed just before in the scene list. This node ends the script.

Example: a “Back” button in a menu.

Restart the scene

Output: none (end of script)

Restarts the scene from the beginning: objects back in place and local variables back to their starting value. Global variables do not change.

Example: Game Over when health reaches 0.

Open a HUD

Input: Scene

Shows another scene on top of the game, like a layer (HUD), with its own Blueprint.

Example: a pause menu or an inventory.

Close the HUD

Closes the open HUD.

Example: the “Close” button of the pause menu.

Place a copy of a scene

Inputs: Scene, X position, Y position

Places a copy of the chosen scene (prefab) in the game, at position X, Y.

Example: spawn a group of enemies prepared in another scene.

Destroy the copies of a scene

Input: Scene

Removes all copies of the chosen scene placed in the game.

Example: clear all enemy groups at the end of a wave.

Quit the game

Output: none (end of script)

Closes the exported game. In the editor, nothing closes: use the stop button.

Example: a “Quit” button in the main menu.

Reset the tilt to zero

Needs Yop2D version 1262 or newer (the last number of the version, for example 1.0.1262). If your version is older, update Yop2D. The way the player holds their phone right now becomes the “zero” of the tilt: inclinaison.x and inclinaison.y are 0, and objects driven by “Tilt” or marbles stay still. Handy when the player settles into a new position, or at the start of a level. Without this node, the zero is the phone position when the game starts.

Example: A “Recenter” button → this node: the marble calms down, even if the player changed position.

Vibration

Input: Duration (milliseconds, 1000 = 1 s)

Makes the phone vibrate for the chosen duration (in milliseconds). Without a vibration motor, nothing happens.

Example: 100 ms when the player gets hit.

Enable / disable an element

Inputs: Object, The element becomes

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Greys out an interface element (it no longer reacts to the finger) or makes it usable again. Also works for an ordinary touchable object. Example: “Buy” disabled while coins < 10.

Change the choices of a list

Inputs: Object, The choices (separated by commas), Choice shown (0 = the 1st, -1 = no change)

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Replaces the choices of a drop-down list, single choice, tabs, scrolling list or inventory, and can choose which one is shown. Example: choices “Sword, Bow, Staff”, choice shown 0.

Time

Wait

Input: Duration (seconds)

Waits for the chosen time, in seconds, then continues. The rest of the game keeps running during the wait.

Example: show “You lose!”, wait 2 seconds, then restart the scene.

Repeat

Inputs: Every (seconds), Number of times (0 = endless), Timer name (optional)  →  Outputs: Right away / Each time / Move finished

Runs the “Each time” output every X seconds, a number of times (0 = forever), then “Move finished”. “Right away” runs at the start. If it is already running, it does not start again.

Example: spawn an enemy every 3 seconds.

Countdown

Inputs: Object, Variable, Start value (optional), Timer name (optional)  →  Outputs: Every second / Move finished

Removes 1 from the chosen variable (a number) every second until 0. “Every second” runs on each tick, “Move finished” at 0. “Start value (optional)” sets the starting value.

Example: a 60-second timer: at 0, Game Over.

Stop a timer

Input: Timer name (empty = all)

Stops the timer (Repeat or Countdown) with this name, or all timers if the name is empty.

Example: stop the timer when the player wins.

Game speed (slow motion)

Input: Speed (1 = normal, 0.5 = slow)

Changes the speed of the whole game: 1 = normal, 0.5 = slow motion, 2 = fast (from 0 to 4).

Example: a slow-motion effect for 2 seconds.

Pause the game

Pauses the game: movements and timers stop.

Example: open the pause menu.

Resume the game

Resumes the game after a pause.

Example: the “Continue” button of the pause menu.

Hit stop

Inputs: Duration (seconds), Speed during the stop (0 = frozen)

Slows the whole game almost to a stop for a very short moment (in real seconds), then the game goes back to its speed. It gives “punch” to impacts.

Example: when an enemy explodes: duration 0.06, speed 0.05.

Movements & AI

Move Object

Inputs: Object, X, Y

Puts the object directly at position X, Y (teleport).

Example: put the player back at the start.

Push object

Inputs: Object, Add X, Add Y

Moves the object by the given distance from where it is now. A physics object is stopped by walls.

Example: linked to “Object Held Down”: “Add X” = 5 moves right.

Rotation

Inputs: Object, Angle (degrees)

Turns the object to the given angle, in degrees.

Example: =wheel.rotation + 5 linked to “Every frame” keeps the object “wheel” spinning.

Play movement (steps)

Inputs: Object, Movement name

Plays on the object a movement made in Assets → Movement (steps: position, rotation, size, transparency). The engine computes everything in between. While it moves, the object's gravity and controls are switched off. The next nodes run without waiting.

Example: a platform that goes up and down in a loop, or a sliding door.

Stop the movement

Input: Object

Stops the movement running on the object. It stays where it is.

Example: stop the platform when the player presses a button.

Spin the object continuously

Inputs: Object, Spin speed (degrees per second, negative = other way, 0 = stop)

Makes the object spin on itself without stopping, at the speed you choose in degrees per second. A negative number spins the other way, 0 stops the rotation. The movement follows game time: it stops while the game is paused.

Example: A spinning saw: "At start" → this node on the saw, speed 360.

Follow the path

Inputs: Object, Path name, Speed (pixels per second), Turn to face the way it goes (yes / no), Random side offset (pixels, ±: each one walks in its own lane), Avoid the others: step aside to avoid overlapping and overtake slower ones (yes / no), Usable width to step aside (pixels on each side of the road centre), Image angle (0 = faces right, 90 = faces down)  →  Outputs: Right away / Arrived

Makes the object follow a path drawn with the “Path” tool in Assets: it is placed on the starting point, then moves from point to point at the chosen speed. At a crossroads it picks its exit as you set it (random, take turns, by a variable). The “Reached the end” exit fires when it reaches a point with no exit. With “Random side offset”, each object walks in its own lane (random shift): several enemies advance side by side instead of overlapping. With “Avoid the others”, an object that catches up with a slower one steps aside, overtakes it and returns to its lane; if the road is too narrow, it follows instead.

Example: An enemy appears: Follow the path “Enemy_path”, speed 150. “Reached the end” exit → Deal damage to the base, then Destroy the object.

Stop following the path

Input: Object

Stops the object where it is: it no longer follows its path (the “Reached the end” exit will not fire).

Example: An enemy is frozen by a trap: Stop the path, then later Follow the path again so it moves on.

Stop the object

Input: Object

Stops the object dead: no more speed, push, jump or automatic movement.

Example: freeze an enemy hit by an ice spell.

Stop movements

Input: Object

Turns off the object's automatic movements: move continuously, pursue and flee.

Example: the enemy stops chasing when the player hides.

Move forward continuously

Inputs: Object, Speed

The object moves by itself, in the direction it is facing, at the chosen speed.

Example: a bullet or a moving car.

Go to an object (path)

Inputs: Object A, Object B, Speed, Diagonals (yes / no), Stop, These tags block the path (other units, separated by commas), Stay in the shown zone (the path never leaves the range), Name of the zone to respect (empty = the unnamed zone)  →  Outputs: Right away / Arrived

Object A goes to object B, finding the shortest path by itself, square by square, without going through walls ("Solid" tiles of a tile layer, fixed physical objects). The path is updated when B moves. “Arrived” runs when A touches B. The "Stop" setting lets the object stop on a neighbouring cell, well centered (grid games); "These tags block the path" makes it go around other units. In the advanced settings, “Stay in the shown zone” limits the path to the cells shown by “Show reachable cells”: the object never walks through a cell outside its range.

Example: a ghost chasing the player through a maze.

Go to a point (path)

Inputs: Object, X position, Y position, Speed, Diagonals (yes / no), These tags block the path (other units, separated by commas), Stay in the shown zone (the path never leaves the range), Name of the zone to respect (empty = the unnamed zone)  →  Outputs: Right away / Arrived

Object A goes to point X, Y around the walls, by the shortest path (square by square). With =doigt.x and =doigt.y, it goes where the screen is touched. “Arrived” runs on arrival. If there is no path, it stays where it is. In the advanced settings, “Stay in the shown zone” limits the path to the cells shown by “Show reachable cells”: the object never walks through a cell outside its range.

Example: tap a square to send the hero there, in a strategy game or a dungeon.

Stop the path

Input: Object

The object stops following its path (“Go to an object (path)” or “Go to a point (path)”) and stays where it is.

Example: the fly stops when the game is won.

Place on a cell (column, row)

Inputs: Object, Column (0 = the first), Row (0 = the first)

Puts object A exactly in the middle of the chosen cell (column and row, counted from 0 at the top left). The grid is the one of the scene's tile map. With the 🔗 button, plug in “Touched column” and “Touched row” to send it to the cell the finger touches.

Example: move a piece to the touched cell in a board game.

Center on its cell

Input: Object

Object A stays in its cell but goes back exactly to the middle. Handy when a move stopped between two cells.

Example: re-center a hero after its move.

Go to the cell (path)

Inputs: Object, Column, Row, Speed, Diagonals (yes / no), These tags block the path (other units, separated by commas), Stay in the shown zone (the path never leaves the range), Name of the zone to respect (empty = the unnamed zone)  →  Outputs: Right away / Arrived

The object walks to the CENTER of the cell (column, row), going around walls, blocking terrains and the units with the given tags. Default: the cell touched by the finger. "Arrived" output once on the cell. In the advanced settings, “Stay in the shown zone” limits the path to the cells shown by “Show reachable cells”: the object never walks through a cell outside its range.

Example: send a hero to a touched blue cell.

Move the piece one cell

Inputs: Object, Direction, Speed, These tags block the path (other units, separated by commas)  →  Outputs: Arrived / Blocked (wall, terrain, unit, edge)

Moves the piece one cell (up, down, left, right), well centered. If the cell is a wall, a blocking terrain, a unit (tags) or the edge of the map: "Blocked" output. Otherwise "Arrived" at the end of the step.

Example: move a board-game piece with ◀ ▶ ▲ ▼ buttons.

Chase an object

Inputs: Object A, Object B, Speed

Object A moves by itself towards object B, at the chosen speed.

Example: a ghost following the player.

Flee an object

Inputs: Object A, Object B, Speed

Object A moves by itself away from object B, at the chosen speed.

Example: a chicken running away from the player.

Screen wrap

Input: Object

Whatever leaves one side of the screen comes back on the opposite side (Pac-Man effect).

Example: an asteroid that leaves on the right and comes back on the left.

Clamp to screen

Inputs: Object, Margin

Stops the object from leaving the screen. The margin stops it a little before the edge.

Example: the player's ship always stays visible.

Push at an angle

Inputs: Object, Angle (0 = right, 90 = down), Force

Pushes the object in a direction (in degrees: 0 = right, 90 = down, 180 = left, 270 = up) with the chosen force.

Example: a spring that sends the player diagonally.

Impulse (jump)

Inputs: Object, Vertical force (negative = up)

Launches the object upwards (negative number) or downwards (positive), and gives it physics so it falls back.

Example: a jump: force -15.

Change the behavior

Inputs: Object, How it moves, Speed, Jump height, Is a ladder, Collectable

Changes what the object does during the game, with the same choices as the Inspector's "Object behavior" window: Scenery, Ground / wall, Falls and bounces, Platform character, Patrol (back and forth), Top-down character, Dragged with a finger. You can also change the speed, the jump height, "is a ladder" and "collectable". Every setting left on "(don't change)" keeps its value.

Example: a crate standing still (Ground / wall) starts to fall when a lever is pulled: Change the behavior → Falls and bounces.

Bounce around

Inputs: Object, Strength (0 = stop), Duration (milliseconds, 1000 = 1 s), Keep going while moving (yes / no)

Makes the object hop (a small visual bounce) with the chosen intensity and duration. 0 stops it. It can keep going while the object moves.

Example: a character that hops as it walks.

Face towards

Inputs: Object A, Object B, Angle offset (degrees)

Turns object A towards object B. The offset fixes the image's direction (0 = the image faces right).

Example: a turret aiming at the player.

Glide to

Inputs: Object, X position, Y position, Duration (seconds)

Smoothly moves the object to position X, Y over the chosen time (seconds). The next nodes run without waiting.

Example: a moving platform or a menu sliding onto the screen.

Variables & Inventory

Modify Variable

Inputs: Object, Variable, Value

Gives the variable a new value (a number, a text, yes / no or a calculation).

Example: set “score” back to 0.

Add to Variable

Inputs: Object, Variable, Value to add, Back to 0 after (optional)

Adds the value to the variable (a negative number subtracts). For a text variable, adds the text at the end. With "Back to 0 after", the variable turns like a counter: after 9 it goes back to 0 (and below 0 it goes to 9).

Example: score + 1 for each coin; a padlock digit: + 1 on each tap, back to 0 after 9.

Keep a variable between two values

Inputs: Object, Variable, Minimum, Maximum

Keeps the variable (a number) between a minimum and a maximum.

Example: health never goes above 100.

Random number

Inputs: Object, Variable, Between (min, max)

Puts a random number in the variable. random(1, 6) gives a number from 1 to 6.

Example: a dice roll.

Add to inventory

Inputs: Object, Variable

Puts the object in the inventory (a variable of type Inventory List). It is only added once.

Example: pick up a key.

Remove from inventory

Inputs: Object, Variable

Removes the object from the inventory.

Example: use the key to open the door.

If in inventory

Inputs: Object, Variable  →  Outputs: True / False / Then

Follows the True output if the object is in the inventory, False otherwise.

Example: the door only opens if the key is in the inventory.

Combine two objects

Inputs: Object A, Object B, Result object name

Replaces objects A and B with a copy of the object whose name you type, at A's place. If that model does not exist, nothing changes.

Example: stick + cloth = torch.

Save state

Remembers the state of the scene (objects and variables) and the global variables, like a save point.

Example: a checkpoint flag in the middle of the level.

Restore state

Puts the scene back as it was at the last “Save state”. If there is no save yet, nothing changes.

Example: start again from the checkpoint after a fall.

Save variables to a file

Inputs: Save name, Variables (empty = all), Also object variables (life, attack…)

Writes the values of your variables (global ones and the scene's) to a file on the device, so they are still there when the player closes and reopens the game. “Save name” lets you keep several games. Leave “Variables” empty to keep everything, or type names separated by commas (score, lives). Unlike “Save state”, it survives closing the game.

Example: When the player scores: “Add to Variable” on “score”, then “Save variables to a file”. The score is written to the file at every point.

Load variables from a file

Inputs: Save name, Variables (empty = all), Also object variables (life, attack…)  →  Outputs: Loaded / No save found

Brings back the values written by “Save variables to a file” (same save name). Every variable that still exists gets its saved value back. Output “Loaded” when it worked, “No save found” on the very first game. Often placed right after “At start”.

Example: Right after “On Start”: “Load variables from a file”, then “Set a property” to show the score that was found.

Delete a save

Input: Save name (* = all)

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Deletes a slot written by “Save variables to a file” (same “Save name”). Handy for “New game” or to erase the player's data. Write * instead of the name to delete ALL saves of this game. If the slot does not exist, nothing happens.

If a save exists

Input: Save name  →  Outputs: True / False

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Tells whether a save already exists (same “Save name” as “Save variables to a file”) without loading anything. “True” output if there is one, “False” otherwise. For example to show or hide the “Continue” button of a menu.

Give a row's values (table)

Inputs: Object, Data table, Row (empty = the object's name)  →  Outputs: Found / Not found

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. The object receives all the values of a row of a data table (Add → Tools → Data tables): each column becomes an object variable (“Vie” → vie, “Gagne XP” → gagne_xp), an image column changes its image. Empty row: the row named like the object (“Slime 2” takes “Slime”), otherwise one of its tags. Example: at start, each monster gets its health and attack.

Texts & Dialogues

Small message at the bottom of the screen

Input: Message

Shows a small message at the bottom of the screen for a few seconds. Start with = to show a calculation.

Example: ="Score: " + score

Modify Text

Inputs: Object, New text

Replaces the text of a Text object. Start with = to show a calculation.

Example: ="Score: " + score

Write to the log (for debugging)

Input: Message

Writes a message in the project log (diagnostic file), without showing anything in the game. Start with = to write a calculation.

Example: ="health = " + vie, to check a value while testing.

Show dialogue

Inputs: Object, Sentence name (in the game texts)

Writes into the Text object the sentence matching the key, from the dialogue file (dialogues.txt). Several languages: write “hello.en = Hello”, “hello.fr = Bonjour”…; the game uses the language in the “langue” variable, otherwise the phone language. “\n” = new line.

Example: the key “hello_merchant” shows the merchant's line.

Show an alert window

Inputs: Title, Message, Button text, Pause the game while it is shown

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Shows a window with a title, a message and a button (OK). The game can pause meanwhile; what follows starts when the player taps the button.

Append to text

Inputs: Object, Variable, Text to add

Adds text at the end of a variable of type Text.

Example: type a password letter by letter.

Logic & Conditions

Condition

Input: Condition  →  Outputs: True / False / Then

Tests a condition: follows the True output if it is right, False otherwise. “Then” runs afterwards, in both cases.

Example: score >= 10 → True → next scene.

If a variable…

Inputs: Variable, Comparison, Value  →  Outputs: True / False

Compares a variable with a number, nothing else to type: choose the variable, the comparison (is at least, is at most, equals…) and the number. The next part runs from “True” or “False”. Example: if score is at least 3, show the VICTORY title.

If joystick

Outputs: Up / Down / Left / Right / Idle / Then

Follows the output matching the joystick direction: Up, Down, Left, Right, or Idle when it is not touched.

Example: linked to “Every frame” to play the walking animation in the right direction.

If on ground

Input: Object  →  Outputs: True / False / Then

True if the bottom of the object is standing on a fixed, visible object (floor, platform), False otherwise.

Example: only allow jumping when the player is on the ground.

If moving

Input: Object  →  Outputs: True / False / Then

True if the object moved since the previous frame, False otherwise.

Example: play the walking animation only when the character moves.

Run one of my nodes

Input: Function

Runs one of your nodes (a Blueprint made in the My nodes section), then continues. If it has settings, a line appears for each. Do not put it under “Every frame”.

Example: a “LoseLife” node used by several enemies.

Call event

Input: Event name

Runs the “Local Event” with this name, in the same Blueprint, then continues.

Example: call “GameOver” from the fall and from the timer.

Sequence

Outputs: 1 / 2 / 3 / 4

Runs its outputs one after the other: 1, then 2, then 3, then 4. An output with no link is skipped.

Example: at start: 1 = place the player, 2 = start the music, 3 = show the score.

Cooldown

Inputs: Object, Delay (seconds)  →  Outputs: Ready / Not yet

Lets things through “Ready” at most once per delay (in seconds); otherwise it is “Not yet”. With an object chosen, each object has its own delay.

Example: shoot at most once every 0.5 second.

If off-screen

Inputs: Object, Margin (pixels)  →  Outputs: True / False / Then

True if the object is completely off the screen (plus the margin), False otherwise.

Example: destroy bullets that leave the screen.

If / Else

Inputs: If (condition), Else if (condition)  →  Outputs: If / Else if / Else / Then

Tests the first condition, then the second: follows “If”, “Else if” or “Else”. “Then” runs afterwards.

Example: if score >= 100 → gold, else if score >= 50 → silver, else → bronze.

By value

Inputs: Value to test, Case 1, Case 2, Case 3, Case 4, Case 5, Case 6  →  Outputs: 1 / 2 / 3 / 4 / 5 / 6 / None / Then

Compares the value to test with cases 1 to 6 and follows the output of the first matching case; “None” if nothing matches. An empty case is skipped.

Example: depending on “weapon”: 1 = sword, 2 = bow, 3 = wand.

For each table row

Input: Data table  →  Outputs: For each one / Done

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Goes through each row of a data table, right away, one after another: the “For each one” output runs once per row (the ligne_tableau variable holds its name, numero_ligne its number), then “Done”.

For each object (with a tag)

Input: Objects' tag  →  Outputs: For each one / Done

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Goes through each object that has a tag, right away, one after another: the “For each one” output runs once per object (it becomes the involved object; numero_objet = its number), then “Done”.

Objects (create, destroy, shoot)

Set a property

Inputs: Object, Property, Value

Changes an object property chosen from a list (x, y, rotation, opacity, text…).

Example: set the rotation of a clock hand to =temps * 90.

Give a tag (object family)

Inputs: Object, Tag

Gives the object a new tag (label).

Example: a defeated enemy gets the tag “harmless”.

Destroy Object

Input: Object

Removes the chosen object from the scene.

Example: choose “Implied Object” to destroy the coin the player just touched.

Destroy by Tag

Input: Tag to destroy

Removes all objects with this tag.

Example: a bomb destroys every “Enemy” object.

Generate clone (Spawner)

Inputs: Object A, Object B

Creates a copy of object B (the model) at the place of object A (the spawn point).

Example: a cannon (A) that spawns cannonballs (B).

Lock / unlock the object

Inputs: Object, Locked (yes / no)

Locks or unlocks the object in the editor (the padlock). It has no effect during the game: to stop an object from being dragged, use “Change the behavior”.

Link two objects

Inputs: Object A, Object B

Attaches object A (the child) to object B (the parent): A follows B when it moves.

Example: a sword that follows the character's hand.

Create a copy of the object

Inputs: Object B, X position, Y position

Creates a copy of object B (the model) at position X, Y. The copy becomes the “Implied Object”.

Example: drop a rock at a random position: X = random(0, 800).

Shoot an object

Inputs: Object A, Object B, Model name, Direction, Speed, Destroy off screen (yes / no), Shot lifetime (seconds, 0 = unlimited)

Creates a projectile (the object named in “Model name”) at object A, and launches it at the chosen speed: 0°, 90°, 180°, 270°, towards object B (“Toward target”) or along A's angle.

Example: a ship firing lasers upwards (270).

Launch a guided missile (curve)

Inputs: Object A, Object B, Model name (image facing right), Starting direction (0 = right, 90 = down, 180 = left, 270 = up), Speed, Turn: degrees per step (small = wide curve), Wait before aiming (seconds), Lifetime (seconds, 0 = endless)

Launches a missile that starts in one direction, then slowly turns toward its target: it follows a real curve. “Object A” is the one that fires, “Object B” is the target to follow. The model is a hidden object whose image faces right. A small “Turn” gives a wide curve; when its lifetime ends, a missile that hit nothing explodes.

Example: an enemy fires a missile at the ship: object A = the enemy, object B = the ship, lifetime 3 seconds.

Destroy the object after a delay (seconds)

Inputs: Object, Delay (seconds)

Removes the chosen object after a delay (in seconds). Handy to make an explosion disappear once its animation is over.

Example: after “Generate clone (Spawner)” and “Play animation”, the explosion image is destroyed 0.4 seconds later.

Set Progress

Inputs: Object, New progress

Sets how full a progress bar is, between its minimum and maximum.

Example: “New progress” = vie (health), for a health bar.

Create object

Inputs: Object, X position, Y position

Creates a copy of the chosen object (the model) at position X, Y.

Example: add a crate at an exact spot.

Remove health points

Inputs: Object, Points removed (negative = heal), Disappears at zero

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Removes health points from the object (“Health points” setting in its Inspector). At zero, the “When an object has no health left” event starts, then the object disappears (unless “Disappears at zero” = no). A negative number heals. Example: “If # bullet touches # enemy” -> Remove health points (Involved object, 1).

Appearance & Objects

Transparency

Inputs: Object, Opacity (0 to 1)

Sets the object's transparency: 0 = invisible, 1 = solid.

Example: 0.5 for a half-transparent ghost.

Visibility

Inputs: Object, Visible (yes / no)

Shows (true) or hides (false) the object.

Example: show a “You win!” message hidden at the start.

Bring to front / send back

Inputs: Object, Depth (bigger = in front)

Changes the object's layer: the bigger the number, the more the object is in front of others.

Example: put the player in front of a decoration.

Grow / shrink

Inputs: Object, Horizontal size (1 = normal), Vertical size (1 = normal)

Changes the object's size: 1 = normal, 2 = twice as big, 0.5 = half.

Example: the player grows after eating a mushroom.

Change Image

Inputs: Object, Image

Replaces the object's image with another image from the Assets. Empty = no image.

Example: the character looks left or right depending on the button.

Change the text font

Inputs: Object, Font (empty = normal font)

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Changes the font of a text object during the game. Tap the “Font” line to pick it in the library (preview “Abc 123”). The first card brings back the normal font. Handy for a shouting character, a subtitle or a warning message. For size and alignment, use “Set a property”.

Modify Color

Inputs: Object, Color

Changes the object's color.

Example: a button turns green when the answer is right.

Color Filter

Inputs: Object, Filter

Applies a filter to the object: Black and White, Sepia, Invert, or None to remove it.

Example: switch to black and white during a flashback.

Color blending (light effect)

Inputs: Object, Filter

Changes how the object blends with what is behind it (Additive, Multiply, Screen, Invert).

Example: Additive for a glowing light or flame.

Blur the object

Inputs: Object, Blur strength (in pixels, 0 = sharp)

Blurs an object's image, or a whole group if you target a tag. It is the “depth of field” effect: a light blur (3 to 6) on the far background and on big foreground objects makes them look far away or in front of the camera. Use 0 to go back to sharp. The blur is computed once and kept in memory, so the game does not slow down. Max 60.

Mirror Effect / Invert

Inputs: Object, Axis

Flips the object: Horizontal (left / right) or Vertical (up / down).

Example: the character faces the way it walks.

Background scrolling (depth)

Inputs: Object, Background speed (1 = normal, 0.5 = slower, far away effect)

Sets how fast the object scrolls when the camera moves: 1 = normal, 0.5 = half as fast (depth effect).

Example: mountains in the background that scroll slowly.

Glowing halo

Inputs: Object, State, Color, Glow size

Surrounds the object with a soft glow of the chosen color and size (it follows the shape of images), or removes it.

Example: a bonus that glows yellow, size 20.

Blink

Inputs: Object, State, Speed (milliseconds, 1000 = 1 s), Duration (milliseconds, 0 = endless)

Makes the object blink at the chosen speed (ms), for a duration (ms, 0 = forever), or stops the blinking.

Example: the player blinks for 1 second after being hit.

Team colour (replaces the pink in the drawing)

Inputs: Object, Team colour, Colour to replace in the drawing (pink by default), Tolerance (1 to 100): higher also replaces similar colours, Shades replaced (1 to 100): 100 = every shade of this hue, small = only the exact marker colour

One drawing for all teams: paint the parts to colour (cloak, flag, plume) with a marker colour (bright pink #FF00FF by default), then this node replaces that pink with the team colour for the object. The drawing's shadows and highlights are kept (a dark pink becomes a dark blue). Tolerance says how far a colour may stray from the marker and still be replaced. Nothing is changed in the images: it all happens at display time, so do it again at the start of each game.

Example: two armies with the same images: player in blue, enemy in red.

Shadow under the object

Inputs: Object, Shadow, Shadow strength (%), Shadow width (% of the object), Vertical shift (pixels, negative = up)

Puts a soft shadow under the object (or removes it with “No”). It follows the object when it moves; you can set its strength and width. It instantly gives volume to characters standing on a backdrop. You can also tick the “Shadow under the object” box in the Inspector, with no node at all.

Example: a shadow under the hero: strength 50, width 70.

Fade

Inputs: Object, Target opacity (0 to 1), Duration (seconds)

Smoothly changes the object's opacity to the target value, over the chosen time (seconds). The next nodes run without waiting.

Example: fade out a title in 1 second (target opacity 0).

Particles and lights

Particle effect

Inputs: Object, Preset, Count (0 = preset's), Color (empty = preset's), Size (1 = normal), Image (empty = preset shapes)

Fires a burst of particles on the object: explosion, sparks, dust, smoke, fire, rain, snow, confetti, trail, wake trail, hyperspace or speed lines. Count, color and size can be set. With an image ("Image" setting), each particle becomes that image: a drawn explosion, a star, a leaf…

Example: a hit enemy explodes in magenta: Explosion preset, color #FF40D0.

Particles on / off

Inputs: Object, State

Turns a “Particles” object on or off: it emits continuously or stops (particles already fired finish their life).

Example: turn the engine exhaust on when the ship moves.

Particle burst

Inputs: Object, Number of particles

Fires many particles at once from a “Particles” object, with its settings (preset, color, size).

Example: 80 confetti when the level is won.

Change particle preset

Inputs: Object, Preset

Changes the preset of a “Particles” object during the game.

Example: a fire that turns into smoke when it is put out.

Electrocution

Inputs: Object, Lightning color, Duration (seconds, 0 = endless), Intensity (0 = stop, 1 to 3)

Lightning crackles around the object: it flashes in the lightning color, shakes and throws sparks. Duration 0 = endless (electric fence); intensity 0 = stop.

Example: the wizard touches a trap: “Electrocution” on the wizard (1 second), “Wait” 1 second, then “Restart the scene”.

Darkness and light mood

Inputs: Color of the night, Darkness (%, 0 = full day, 100 = almost pitch black), Changes over (seconds: 30 = a real sunset)

Darkens the whole game (under the buttons and score) with the color you choose. Darkness 0 = full daylight, 100 = pitch black, except around light sources. The level and the color change smoothly: over 30 seconds you go from day to an orange dusk and then a blue night, like a sunset.

Example: a sunset: “Darkness and light mood” orange, darkness 40, over 6 seconds; “Wait” 6 seconds; then “Darkness and light mood” night blue, darkness 90, over 6 seconds.

Day and night cycle

Inputs: Length of a full day (seconds, 0 = stop), We start at…, Repeat forever (yes) or one day only (no)

Takes the whole game from day to an orange evening, a blue night, dawn, then day again, all by itself. You choose the length of a full day (30 to 120 seconds for a lively game), the starting moment and whether the cycle repeats forever. A paused game freezes the cycle. Length 0 = stop the cycle (the sky stays as it is). A manual setting with “Darkness and light mood” takes over. Your lights (“Light source (torch, lantern…)”) stay on: you see them better at night.

Example: a living world: on start, “Day and night cycle” with a length of 90 seconds, starting “Full day”, looping.

Light source (torch, lantern…)

Inputs: Object, Light color, Radius (pixels: distance from the light's center), Lighting (%, 100 = normal, 200 = very strong), Colored glow (%, 0 = none, 200 = very strong), Flicker, Switching on, Horizontal shift (pixels), Vertical shift (pixels, negative = up)

Attaches a light to the object: it follows the object when it moves (a character's torch, a lantern, a fire…), even if the object is the child of another. Settings: color, radius in pixels (distance from the center), lighting (100 = normal, up to 300: stronger and farther), colored glow (0 = none), flicker (none, candle, torch, flickers) and shift. One light per object, 8 at most at once. It cuts through the darkness set by “Darkness and light mood”; without darkness it only adds its glow. “Switching on” setting: “Only when it is dark” turns the light on by itself at nightfall (ideal with “Day and night cycle”).

Example: a character's torch: placed on a “lantern” object that is a child of the hero, radius 360, flicker “torch”.

Turn off the object's light

Input: Object

Turns off the light attached to the object. To turn it back on, use “Light source (torch, lantern…)” again.

Example: a “Lantern” button turns off the hero's light.

Object trail

Inputs: Object, Preset, Color (empty = preset's), Size (1 = normal)

The object leaves a trail of particles behind it when it moves (preset, color and size of your choice). Set on a shot's model, every shot inherits it. Preset “None” removes it.

Example: shots that leave a glowing trail: target = the shot's model, Trail preset.

Turn-based (strategy)

Go to the next turn

Input: Teams, in order (tags separated by a comma)

Passes the game to the next team. Write the teams in order using their tags (e.g. player,enemy). The first call (for example after "At start") begins with the first team; when every team has played, the turn number goes up. At the start of each turn the local event "tour_<team>" runs if it exists (e.g. "tour_enemy").

Example: put "Go to the next turn" on the "End turn" button.

If it is the turn of…

Input: Team (tag)  →  Outputs: True / False

True if it is the turn of the team written (its tag), False otherwise.

Example: let the player touch their units only during their own turn.

Mark as having played

Input: Object

Remembers that the unit (object A) has played this turn. Everything is cleared when the next turn starts.

Example: stop a hero from moving twice in the same turn.

If the unit has already played

Input: Object  →  Outputs: True / False

True if the unit (object A) has already played this turn, False otherwise.

Example: refuse to move a hero that has already played.

Select the object

Input: Object

Keeps an object in memory as “the selected object” (for example the chosen unit). Unlike “the involved object”, it does not change when you touch something else: other nodes aim at it with the target “The selected object”. If you don't pick an object, it is the one you just touched.

Example: “On click on # unit” then Select the object; then touching a cell moves “The selected object”.

Deselect

Forgets the selected object: nothing is selected anymore (for example when the player cancels, or at the end of the turn).

Example: A “Cancel” button: Deselect.

If an object is selected

Outputs: True / False

Checks whether an object is selected. The True output runs if there is one, the False output if not.

Example: Touching a cell: if an object is selected, move it; otherwise do nothing.

If this object is the selected one

Input: Object  →  Outputs: True / False

Checks whether the targeted object IS the selected object. Handy to deselect a unit when it is touched a second time.

Example: On click on # unit (involved object): if this object is the selected one → Deselect; otherwise → Select.

Show reachable cells

Inputs: Object, Zone type, Number of steps (or range), Color of the cells, Cell visibility (0 = invisible, 100 = solid), Frame around each cell, Write the step count on each cell, Walls block (movement), These tags block the way (separated by commas), This unit's own costs (tag or terrain name = cost, x = forbidden; e.g. forest=2, Mountain=3, Water=x), Zone name (optional: to show several), Range shape (attack and jump), Minimum range (0 = none; 2 = not the first cells), My positions (column,row; e.g. 2,1 ; -2,1 ; 0,3), Remove the cell the object stands on

Colors the cells the chosen object can move to (or attack). Walls block, and you can add tags that block (other units) and terrains that cost more steps (forest=2). Color, visibility, frame and numbers are adjustable. "Zone name" lets you show several at once (movement in blue, attack in red).

Example: show a hero's movement zone when it is touched.

Hide the cells

Input: Zone name (optional)

Clears the colored cells (all of them, or one named zone).

Example: hide the zone once the hero has arrived.

If the cell is reachable

Inputs: Column, Row, Zone name (optional)  →  Outputs: True / False

True if the cell (column, row) is one of the shown cells. By default: the cell the finger touches. False otherwise.

Example: refuse a move that is too far with "too far!".

Give a unit sheet

Inputs: Object, Health points, Attack, Defense, Movement (steps), Attack range (cells), Other statistics (e.g. munitions = 3, armure = 2)

Gives the object its sheet: health, attack, defense, movement and range (object variables "vie", "attaque", "defense", "mouvement", "portee"). They can be read anywhere with a formula, e.g. =hero.mouvement for the number of steps of the reachable cells. Put this node "At start" of each unit, or in a reusable unit prefab.

Example: create an archer: health 8, attack 4, defense 0, movement 4, range 3.

Attack

Inputs: Object A, Object B, Attack power (%), Count the defense of the target's terrain, Always at least 1 damage, Destroy the target when its health runs out, Free damage formula (e.g. attacker.attaque * 2 - target.armure); empty = normal calculation, Bonus by target tags (e.g. cavalry = 150, light = 120: % of damage), Bonus by attacker tags (e.g. spear = 130), Statistic used up at each attack (e.g. ammo: no attack at 0), Piercing: % of defense ignored (0 = none), Counterattack: % of the target's attack returned if it survives and the attacker is in its range (0 = none), Height bonus: % damage per level of difference (e.g. 15; higher = more, lower = less), Guard: tag of adjacent allies that strengthen the target's defense (e.g. spear), Guard: defense gained per adjacent ally  →  Outputs: Still alive / Out of health / Attacker destroyed (counterattack)

Object A attacks object B: damage = A's attack × power × bonuses − B's defense − B's terrain defense. Exits “Still alive” and “Out of health” (the target is destroyed if the box is ticked), and “Attacker destroyed” if a counterattack kills it. Both objects need a unit sheet. The “regle: spear > cavalry = 150” rules of donnees.txt apply by themselves. In advanced: bonuses by tags (“cavalry = 150”), PIERCING (percentage of defense ignored, for a spear or a crossbow), COUNTERATTACK (percentage of the target's attack returned if it survives and the attacker is in its range), HEIGHT BONUS (percentage of damage per level of difference: the one higher up hits harder), GUARD (each adjacent ally with the chosen tag adds defense to the target: a shield wall), a free formula, and a statistic used up at each attack (ammo).

Example: the spear (piercing 40) against heavy cavalry; the archer on the hill (height +15%).

Hit zone (fighting)

Inputs: Object, Who gets hit (tag of the target or its zones), Distance in front of the character (px), Zone width (px), Zone height (px), Start of the hit (seconds after the node), How long the zone is active (seconds), Damage taken off the target's life, Knockback: the target is pushed by (px), Vertical offset (px, negative = higher), Damage by zone hit (e.g. head=150, legs=70), Hit several targets at once, Direction of the hit, Show the zone in game (to adjust it)  →  Outputs: Hit / Missed

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. For fighting games: makes an invisible zone appear IN FRONT of the object that hits, after a short delay, and keeps it active for a short moment. Any object with the chosen tag that enters the zone is hit (only once per hit): its “life” goes down (see “Give a unit sheet”) and it is pushed back. If the target is a character with CHILD zones (head, body, legs, each with its own tag), “Damage by zone hit” (e.g. head=150, legs=70) changes the damage, and “the involved object” is the character that was hit. Outputs “Hit” (once) and “Missed” (at the end, if nobody was hit). Example: Punch button → “Play animation” attack → Hit zone (start 0.12 s, duration 0.12 s); “Hit” → “Hit stop” and a sound. Tick “Show the zone in game” to adjust the size.

Apply data (unit, weapon)

Inputs: Object, Name in donnees.txt (e.g. Knight)  →  Outputs: Found / Not found

Gives object A every value of a unit or weapon written in the donnees.txt file (Assets → Dialogues, or assets_ludexa/Textes/donnees.txt): health, attack, defense, movement, range, price… and its tags. One line is enough: “unite Knight: vie=12, attaque=5, defense=2, mouvement=4, portee=1, tags=cavalry heavy”. You rebalance the game by editing the file, without touching the nodes. Exits “Found” / “Not found”. The file can also hold “arme Sword: attaque=5”, “etat Poison: duree=3, degats=2”, “regle: spear > cavalry = 150” (an attacker tagged spear deals 150% to a target tagged cavalry, applied automatically by “Attack”) and tile heights.

Example: at the start of the game, for each hero: Apply data “Knight”.

Set tile height

Inputs: Start column, Start row, Number of columns, Number of rows, Height (0 = flat)

Gives a height (a level: 0 = flat, 1, 2, 3…) to a rectangle of grid tiles: start column and row, number of columns and rows. Heights drive the height bonus of “Attack” and block sight in the fog of war (a hill hides what is behind it). You can also write them in donnees.txt (“hauteur 3,4 = 2” or a “hauteurs:” block with one digit per tile). Read them with the formula hauteur(column, row) or with the green nodes “Height of the touched tile” / “Height of the tile under an object”.

Example: a 3 x 2 tile hill at height 2, so an archer standing on it hits harder.

Give a state (poison, slow…)

Inputs: Object, State name (e.g. Poison; set in donnees.txt), Duration in turns (empty = from donnees.txt), Damage each turn (empty = donnees.txt), Statistic changed (e.g. mouvement; empty = donnees.txt), Change to this statistic (e.g. -2)

Gives the unit a state for a number of TURNS: poison (damage every turn), slow (movement drops), blessed (attack rises)… Everything can be written in donnees.txt (“etat Poison: duree=3, degats=2”, “etat Slow: duree=2, stat=mouvement, delta=-2”): then only the state's name is needed. Damage lands at the start of each turn of the unit's team, then the state loses a turn; at the end, the changed statistic goes back to normal. Giving the same state again extends it instead of doubling it. The unit keeps an “etat_<name>” statistic (turns left), readable in a formula. Needs “Go to next turn”.

Example: a poisoned arrow: Attack → still alive → give the “Poison” state to the target.

Remove a state

Inputs: Object, State name (empty = all)

Removes a state from the unit (by name), or every state if the name is empty. The statistic changed by the state goes straight back to its previous value.

Example: a priest who cures an ally's poison.

If the unit has the state…

Inputs: Object, State name (empty = all)  →  Outputs: True / False

Tests whether the unit has a state (or any state if the name is empty). Exits “True” / “False”.

Example: cannot move if the unit is “Frozen”.

Area effect around an object

Inputs: Object, Effect, Strength (damage or heal), Radius in tiles, Tags affected (empty = everyone), State name (if the effect gives a state), Falloff per tile of distance (% of strength), Shape, Also hits the object at the centre

Hits every object around object A (at the centre) at once: damage, heal or a state. Settings: the strength, the radius in tiles, the tags affected (empty = everyone), the shape (diamond or square with diagonals), the falloff per tile of distance (explosion: the further away, the weaker), and whether the centre object is hit too. Damage ignores defense. A fireball, a group heal, a scary shout. To count victims in a condition use the formulas compter("tag") and voisins(object, "tag", tiles).

Example: a fireball: radius 2, strength 6, falloff 30% per tile, on “enemy” units.

Gain experience

Inputs: Object, Experience gained, Experience to reach level 2 (x level afterwards), Gains at each level (e.g. vie=2, attaque=1)  →  Outputs: Level up / Nothing to cancel

Gives the unit experience. When it reaches the threshold (threshold × current level) the unit moves up a level, spare experience is kept, and the gains are added (“vie=2, attaque=1”; maximum health rises along with health). The unit keeps the “xp” and “niveau” statistics (1 at the start). Exits “Level up” / “No level up”: play a fanfare or a message when it levels.

Example: a hero who gains 30 experience for every enemy defeated.

Remember the position

Input: Object

Remembers the unit's current position, before a move. With “Cancel the move”, the player can go back (as in Advance Wars when you press “Cancel” before acting).

Example: just before “Go to tile”: Remember the position.

Cancel the move

Input: Object  →  Outputs: Cancelled / Nothing to cancel

Puts the unit back at the position remembered by “Remember the position”, clears its “has already played” mark and sets its “bouge” and “agi” statistics back to 0. Exits “Cancelled” / “Nothing to cancel”.

Example: a “Cancel” button in the unit's action menu.

Play like a computer (AI)

Inputs: Object, Enemy tags (e.g. player), Play style, Movement speed, Other tags that block the path (e.g. its own allies)  →  Outputs: Arrived / No card

Makes a unit play by itself, like a computer. It looks at where it can go (movement, walls, terrain, blocking units), finds the enemies (their tags) and picks the best tile to attack from according to its STYLE: aggressive (most damage, finishing a target first), cautious (avoids the counterattack) or defensive (likes high-defense tiles). Nobody in range: it moves toward the nearest enemy. Once it arrives, the “Arrived” exit fires: the involved object is the chosen target and the unit's “cible_ia” statistic is 1 (can attack) or 0 (just moved closer). It uses the unit's movement, range (and “portee_min”) and unit sheet. Exit “No enemy” if there are none left.

Example: monsters' turn: for each monster, Play like a computer (enemies = player) → on arrival, if cible_ia = 1, Attack.

Update the fog of war

Inputs: Tags of the team that sees (e.g. player), Tags of enemies to hide when out of sight (e.g. enemy), Default vision in tiles (otherwise the unit's "vision" statistic), Darkness of unknown tiles (0 to 100), Remember tiles already seen

Works out what the team can see and covers the rest of the map with a dark veil: the team's units (tags) see around them up to their “vision” statistic in tiles (otherwise the node's default vision). A terrain wall, a terrain with the property “bloque_vue = oui” (dense forest) or a higher tile stops the view. Tiles already seen stay half dark (memory, optional). Units with enemy tags out of sight are hidden. Run it again after every move or at the start of a turn. The formula vue(column, row) is 1 when the tile is seen. “Remove the fog of war” makes everything visible.

Example: at the start of each player turn: Update the fog (team player, enemies enemy, vision 3).

Remove the fog of war

Removes the fog of war: the whole map is visible again and hidden units reappear.

Example: at the end of the game, to show the whole map.

Give health to the object

Inputs: Object, Health points

Gives health points to the chosen object (object variable "vie", and "vie_max" for the maximum). Read it anywhere with a formula, e.g. =monster.vie, to write it in a text or a bar.

Example: give a monster 10 health points at the start.

Deal damage

Inputs: Object, Damage, Destroy the object when its health runs out, Subtract the defense of the terrain it stands on  →  Outputs: Still alive / Out of health

Removes health points from the object (never below 0). Two outputs: "Still alive" and "Out of health" (the object is destroyed if the box is ticked; "the involved object" stays the one hit).

Example: a hero hits a monster: 3 damage, then a small message depending on the result.

Heal

Inputs: Object, Health restored

Gives health points back to the object, without going over its maximum.

Example: a potion that restores 5 health points to the hero.

Change a statistic

Inputs: Object, Statistic name (e.g. ammo), What to do, By how much

Changes a statistic you invented for an object (ammo, armor, mana, fuel…): add to it, subtract from it or set it to a value. If it does not exist yet, it is created at 0. You can then read it anywhere: =archer.ammo.

Example: After a shot: Change a statistic → object “archer”, statistic “ammo”, Subtract 1.

If the statistic…

Inputs: Object, Statistic name (e.g. ammo), Comparison, Value  →  Outputs: True / False

Compares an object's statistic with a value and follows the “true” or “false” exit: for example “ammo is greater than 0”. A statistic that does not exist counts as 0.

Example: Before shooting: If the archer's “ammo” statistic is greater than 0 → shoot; otherwise → show “Out of arrows”.

Choose a target

Inputs: Object, Tags of possible targets (comma-separated), Which target to pick?, Range in cells (0 = unlimited; e.g. =monster.portee), Minimum range (0 = none), Range shape, My positions (column,row; e.g. 2,1 ; -2,1), Statistic (for the “statistic” rules, e.g. defense), Range in pixels, as a circle (0 = use the range in cells)  →  Outputs: Target found / No card

Object A looks among the objects that carry one of the requested tags for those WITHIN ITS RANGE (same shapes as “Show reachable cells”), then picks one: the closest, the one with the least or the most health, or the lowest / highest value of a statistic. “Target found” output: it becomes “the involved object” (for Attack, Go to…). “No target” output: nobody in range. Perfect for the intelligence of a monster or a turret.

Example: a monster: “Choose a target” (tag “hero”, the closest, range =monster.range), then “Attack” on “Target found”.

Grid shape (hexagons, isometric)

Inputs: Cell shape, Cell width in pixels (0 = automatic), Cell height in pixels (0 = automatic), Corner of cell 0,0: x position, Corner of cell 0,0: y position, Number of columns (0 = grid without edges), Number of rows (0 = grid without edges)

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Changes the SHAPE of the whole game's grid: "square" (as before), "hexagons" (6 neighbors, offset columns) or "isometric" (diamond cells, angled view). Place it under "At start". After that, ALL grid nodes adapt: “Show reachable cells”, “Go to the cell (path)”, “Move the piece one cell” (with its 4 diagonals), “Place on a cell (column, row)”, paths, range, “Attack”, turns. Column / row numbers stay the same (0, 1, 2…); the green nodes "Touched column" / "Touched row" give the right cell. To draw the map, place your cell images (hexagons or diamonds); a "Tile layer" can serve as an invisible data map (terrain, walls): same cell number. Cell width / height: in pixels (0 = automatic).

Values (green wires)

Height of the touched tile

Output: none (end of script)

Green node: the height of the tile the finger touches (0 if nothing is defined). Plug it with 🔗 into a setting, for example in an “If…”.

Example: show “Hill!” when a tile of height 2 is touched.

Height of the tile under an object

Input: Object  →  Output: none (end of script)

Green node: the height of the tile under an object. Useful, for example, to compare the attacker's height with the target's.

Example: only allow a ranged attack from a tile higher than the target.

Random number

Inputs: From, To  →  Output: none (end of script)

Green node (value): gives a random number between "From" and "To", drawn again each time it is used. Connect it to a setting with the 🔗 button of the settings window.

Example: make a coin appear at a random X between 0 and 800.

Object value

Inputs: Object, What  →  Output: none (end of script)

Green node (value): gives a value of the chosen object during the game: its x or y position, width, rotation, opacity…

Example: put a coin at the same height as the player (Y ← object value: player, y).

Variable value

Input: Variable  →  Output: none (end of script)

Green node (value): gives the current value of a variable (score, lives…) during the game.

Example: show the score in a text (Text ← variable value: score).

Calculation

Inputs: A, Operation, B  →  Output: none (end of script)

Green node (value): calculates A + B, A − B, A × B or A ÷ B. A and B can be numbers, or receive a green wire themselves (chained calculations).

Example: give twice as many points (Value ← calculation: score × 2).

Touched column

Output: none (end of script)

Green node (value): gives the column of the cell the finger touches (0 = the first on the left). Plug it into a setting with the 🔗 button.

Example: know which column was touched to place a tower.

Touched row

Output: none (end of script)

Green node (value): gives the row of the cell the finger touches (0 = the first at the top). Plug it into a setting with the 🔗 button.

Example: know which row was touched to place a building.

Object's column

Input: Object  →  Output: none (end of script)

Green node (value): gives the column of the cell where the chosen object is (0 = the first on the left).

Example: know in which column the hero is.

Object's row

Input: Object  →  Output: none (end of script)

Green node (value): gives the row of the cell where the chosen object is (0 = the first at the top).

Example: know in which row the hero is.

Turn number

Output: none (end of script)

Green node: the current turn number (1, 2, 3…), plug it in with the 🔗 button.

Example: show "Turn 3" in a text.

Steps to reach the touched cell

Output: none (end of script)

Green node: the number of steps to reach the touched cell (-1 if it is outside the zone). Handy to count remaining steps.

Example: remaining steps = the unit's steps - this number.

Terrain of the touched cell

Output: none (end of script)

Green node: the name of the terrain of the touched cell ("Forest", "Water"…), or nothing if there is none. Terrains are set in the tile editor.

Example: show "Forest" when a forest cell is touched.

Terrain cost of the touched cell

Output: none (end of script)

Green node: the step cost of the terrain of the touched cell (1 if there is none).

Example: say "this costs 2 steps" before a move.

Terrain under an object

Input: Object  →  Output: none (end of script)

Green node: the name of the terrain the chosen object stands on.

Example: know whether the hero is in water or on the road.

Terrain defense under an object

Input: Object  →  Output: none (end of script)

Green node: the defense bonus of the terrain under the chosen object.

Example: show a unit's defense bonus.

Distance between 2 objects

Inputs: Object A, Object B  →  Output: none (end of script)

Green node (value): gives the distance (in pixels) between the centers of two objects during the game.

Example: shake the screen harder when the enemy is close.

Puzzles and cards

Fill the grid

Inputs: Object, Columns, Rows, Model objects (names separated by commas)

Splits object A (the board) into columns and rows and puts in each cell a copy of a model object picked at random (at least 3 models, names separated by commas). There is never a match at the start, and the pieces drop in from the top. Use it before “Play on the grid (match 3)”.

Example: at the start, an 8 x 8 grid of candies "red, orange, yellow, green, blue, pink".

Connect the dots

Inputs: Object, Columns, Rows, Dots' tag, Wire thickness (% of the cell), Finger: X, Finger: Y  →  Outputs: Pair connected / Done

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Wire-connecting game (put it under “Finger pressed”): the grid = the chosen object, cut into columns x rows; the dots = objects with the chosen tag, their “couleur” variable (#rrggbb) makes the pairs. The finger pulls a wire cell by cell from a dot to its twin; going back shortens the wire; crossing another wire cuts it. Outputs “Pair connected” and “Everything connected”; variables “fils_relies” and “cases_remplies” (%). Example: Finger pressed -> Connect the dots (Grid, 5 x 5) -> Everything connected -> next level.

Play on the grid (match 3)

Inputs: Object, Finger X position, Finger Y position  →  Outputs: For each matched piece / Move finished / Swap refused

The heart of a match-3 game (Candy Crush style), to put under “Finger held down”. Touching a piece selects it, touching its neighbour (or sliding the finger to it) swaps them. The swap only stays if it lines up 3 or more identical pieces; otherwise they go back (“Swap refused”). Each matched piece starts “For each matched piece” (the involved object is the piece), then disappears; pieces fall, new ones arrive and combos happen by themselves. When everything is still: “Move finished”. With no possible move, the grid shuffles itself.

Example: “For each matched piece”: +10 points and sparkles on the piece; “Move finished”: one move less.

Shuffle the grid

Input: Object

Moves all the pieces of object A's grid to new places, without creating a match and keeping at least one possible move.

Example: a "Shuffle" button when the player is stuck.

Draw cards

Inputs: Deck tag, Hand tag, Cards in hand (fill up to), Row centre: X, Row centre: Y, Gap between cards (pixels)

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Fills the hand: takes random cards from the deck (objects with the deck tag) until the hand has the wanted number, gives them the hand tag instead, shows them and lines them up sorted by value. Each card can have a “valeur” variable (2 to 14, Ace = 14) and a “couleur” variable. Example: at start and after each hand played, “Draw cards” (paquet, main, 8).

Arrange the cards

Inputs: Cards' tag, Row centre: X, Row centre: Y, Gap between cards (pixels), Tag of raised (chosen) cards, Height of raised cards (pixels)

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Smoothly lines up the objects of a tag in a centred row, sorted by their “valeur” variable. Those that also have the raised-cards tag (“choisie”) sit a bit higher. Example: after tapping a card (it gets or loses the “choisie” tag), “Arrange the cards” (main) raises or lowers it.

Card combination (poker)

Input: Tag of the cards to check  →  Outputs: High card / Pair / Two pair / Three of a kind / Straight / Flush / Full house / Four of a kind / Straight flush / No card / Then

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Looks at the cards of a tag (variables “valeur” 2 to 14 and “couleur”) and leaves by the output of their poker combination: High card, Pair, Two pair, Three of a kind, Straight, Flush, Full house, Four of a kind, Straight flush (straight and flush need 5 cards). It also writes variables: “combinaison” (its name), “cartes_jetons” (2 to 10 = their value, Jack / Queen / King = 10, Ace = 11) and “cartes_nombre”. Example: “Play” button -> Combination (choisie) -> Pair -> Set Variable (mult, 2).

Shuffle places

Input: Object

Randomly swaps the places of all objects with the chosen tag (Object A = "# tag"). Their child objects follow them.

Example: shuffle the cards of a memory game at the start, or the cups of a shell game.

Camera

Follow with camera

Inputs: Object, Follow X (yes / no), Follow Y (yes / no), Parallax X only (yes / no), Object lower on screen (pixels, 0 = centre, 300 = towards the bottom), Object further right on screen (pixels, 0 = centre, negative = left)

The camera follows the chosen object. You can make it follow only horizontally or vertically. With no object, the camera stops following.

Example: follow the player through a big platform level.

Camera limits

Inputs: Minimum X (left edge of the level), Maximum X (right edge), Minimum Y (top), Maximum Y (bottom; all 0 = no limits)

Keeps the camera inside the level edges: it never shows the empty space beyond. All 0 = no limits.

Example: a level 6480 pixels wide: minimum X 0, maximum X 6480, minimum Y 0, maximum Y 1080, with “Follow with camera” on the player.

Scroll the camera with a finger

Inputs: On (yes / no), Scroll sideways (yes / no), Scroll up and down (yes / no)

Turns finger scrolling on (or off): dragging in the scene moves the camera. A simple tap is still a tap (a tower, a button). HUD buttons never scroll. The camera stays inside the limits set with “Camera limits”.

Example: On start: Camera limits (0, 3840, 0, 1080), then Scroll the camera with a finger: the player drags a map two screens wide.

Camera smoothing

Input: Follow speed (0.01 to 1)

Sets how fast the camera catches up with the followed object: 0.01 = very soft, 1 = stuck to the object.

Example: 0.1 for a smooth camera that follows with a slight delay.

Zoom the screen

Inputs: Zoom (%, 100 = normal), Towards, Duration (seconds)

Smoothly enlarges the whole game screen (the scene, or a story's background and characters) towards the center, the face, a side, the top or the bottom. 100 = back to normal; the dialogue box and the HUD don't move.

Example: zoom 140 towards the face for 2 seconds when Hana is scared, then zoom 100.

Camera shake

Inputs: Strength, Duration (milliseconds, 1000 = 1 s)

Shakes the screen with the chosen strength and duration (in milliseconds).

Example: an explosion: intensity 15, duration 400.

Screen effects and transitions

Screen flash

Inputs: Color, Intensity (%, 0 = none), Duration (seconds)

Flashes a color over the whole screen, fading out in a moment (intensity in %, duration in seconds).

Example: a 0.5-second red flash when the player is hit.

Screen tint

Inputs: Color, Intensity (%, 0 = none), Transition (seconds)

Lays a color over the whole game (under the HUD), with a smooth transition. Intensity 0 removes it.

Example: night falls: dark blue, intensity 55, 2-second transition.

Vignette

Inputs: Color, Intensity (%, 0 = none), Transition (seconds)

Gently darkens the edges of the screen, like in a movie (under the HUD). Intensity 0 removes it.

Example: a scary mood in a cave: intensity 75.

Screen fade

Inputs: Direction, Color, Duration (seconds)

Fades the whole screen out to a color, or back in from it. The fade carries over from one scene to the next.

Example: “Screen fade” (fade out), “Wait” 1 second, “Go to scene”, then “Screen fade” (fade in) when the next level starts.

Atmosphere (rain, snow, night…)

Inputs: What falls or floats, Light, Strength, Ambient sounds (rain, wind, thunder…), Appears over (seconds)

Puts an atmosphere over the whole screen that stays until the next Atmosphere node: what falls or floats (rain, storm with lightning, snow, petals, leaves, fireflies, hearts, bubbles, mist) and a light (night, sunset, memory, dream, fear, dark). The old one fades out while the new one comes in.

Example: after the "Leave" choice, storm and night light; "none" and "normal" remove everything.

Screen transition (circle, star…)

Inputs: Shape, Direction, Color, Duration (seconds), Center: object (name; circle, star, diamond, heart, hero)  →  Outputs: Next / Right away

Covers or uncovers the screen with a shape (19 to choose from: circle, star, heart, curtain, clock, checkerboard, swirl…). “Close” covers the screen and it stays covered; “Open” uncovers it. “Next” runs when it's done, “Right away” runs immediately.

Example: circle closing → “Go to scene” → circle opening. To change scene in a single step: “Go to scene with a transition”.

Screen filter

Inputs: Filter, Strength (%), Fade in (seconds), Duration (seconds, 0 = endless), Keep in the next scene, Also filter buttons and texts (HUD), Flashlight: lit object (name; empty = the one the camera follows), Flashlight: light size (%)  →  Outputs: Then / When it's over

Gives the whole game a “look”, buttons and texts included: TV, VHS, black and white, underwater, nightmare, flashlight… 32 filters to choose from. It fades in gently, stays as long as you want (0 = until you stop it) and can carry on into the next scene. “Then” runs right away, “When it's over” at the end of the duration.

Example: the hero is hit: “Hurt” filter for 2 seconds; or “Flashlight” in a cave.

Stop the filter

Input: Fade out (seconds)  →  Outputs: Then / When it's over

Gently fades out the current screen filter. “Then” runs right away, “When it's over” once the filter is gone.

Example: the hero leaves the cave: stop the flashlight in 1 second.

Go to scene with a transition

Inputs: Scene, Shape, Color, Closing (seconds), Pause while closed (seconds), Opening (seconds), Shape to reopen, Center: object (name; circle, star, diamond, heart, hero)  →  Output: none (end of script)

Changes scene with a transition: the screen is covered by a shape (circle, star, heart, curtain, swirl… 19 shapes), the new scene arrives, then the screen opens again. There is no output: what happens next is set in “At start” of the new scene.

Example: the door is touched: go to the “House” scene with a circle closing on the hero.

Animations

Play animation

Inputs: Object, Animation, Speed (frames/second), Loop (yes / no)

Plays one of the object's animations, at the chosen speed (frames per second), looping or once. If it is already playing, it continues without restarting.

Example: the “walk” animation when the character moves.

Stop animation

Input: Object

Stops the animation and goes back to its first frame.

Example: the character stops walking.

Pause animation

Input: Object

Pauses the animation on the current frame.

Example: freeze the character during a pause.

Resume animation

Input: Object

Resumes the animation where it was paused.

Example: after the pause.

Animation speed

Inputs: Object, Speed (frames/second)

Changes the animation speed (frames per second) without restarting it.

Example: running faster = faster animation.

Look at (character)

Inputs: Object A, Object B, Toward, On (no = stop)

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. A Workshop character turns its head toward the finger or an object (Object B) while it keeps moving. “On: no” stops it.

Aim with the arm (character)

Inputs: Object A, Object B, Toward, On (no = stop)

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. A Workshop character points its front arm at the finger or an object (Object B): to shoot, point, aim. “On: no” stops it.

Make it talk (portrait)

Inputs: Object, Duration (seconds, 0 = stop)

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. The mouth of an animated portrait (Animated portrait tool) moves for the chosen time, without a dialogue box: for example during a recorded voice. 0 stops it. In “Say a line”, its mouth already moves on its own.

Change the expression (portrait)

Inputs: Object, Facial expression

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. An animated portrait smoothly takes the expression with this name (set in the Animated portrait tool: Happy, Sad, Surprised…). In “Say a line”, the line's emotion already picks the expression with the same name.

Tilt the head (portrait)

Inputs: Object, Direction

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. An animated portrait tilts its head left or right (the angle from its settings) and stays that way, or stands straight. “On its own”: it starts moving its head by itself again. For example: a curious look during a question.

Audio

Play sound

Inputs: Sound file, Volume (%, 100 = full)

Plays a sound effect. Several sounds can play at the same time.

Example: a “bling” when a coin is picked up.

Play music

Inputs: Music file, Loop (yes / no), Volume (%, 100 = full)

Starts a music track, replacing the current one. Do not put it under “Every frame” (it would restart all the time).

Example: the level music, at start.

Stop music

Stops the current music.

Example: silence on the Game Over screen.

Play the video

Inputs: Object, From the start

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Starts the video of a “Video” object (where it stopped, or from the start). The video's sound plays with it.

Pause the video

Input: Object

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Stops the video on the current frame; “Play the video” resumes it there.

Stop the video

Input: Object

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Stops the video and goes back to its first frame.

Story and dialogues

Say a line

Inputs: Who speaks, Emotion, The line, Place on screen, Character entrance, Effect, Sound or voice, Next comes  →  Output: Then

Dialogue game: the chosen character says the line in a dialogue box, letter by letter, and the player taps the screen to continue. The character appears with their emotion (their Character sheet: pictures, color, voice). Special words: [c]color[/c], [t]shake[/t], [o]wave[/o], [p] for a pause, {score} for a variable; "🌐 9 languages" button to translate.

Example: Hana (happy) says "Hello!", then “Ask a choice” offers two answers.

Ask a choice

Inputs: Who asks, Emotion, Question (optional), Answer 1, Answer 2, Answer 3, Answer 4, Condition of answer 1, Condition of answer 2, Condition of answer 3, Condition of answer 4, Answer not allowed, Picture for answer 1 (optional), Picture for answer 2 (optional), Picture for answer 3 (optional), Picture for answer 4 (optional), Timer (seconds, 0 = none)  →  Outputs: Answer 1 / Answer 2 / Answer 3 / Answer 4 / Time's up

Shows 2 to 4 answers as big buttons: each answer goes out through its own output, so the story branches like a tree. An answer can require a condition (otherwise it is greyed out or hidden); an optional timer adds the "Time's up" output. Each answer can also have a picture (advanced settings): the answers become big illustrated cards.

Example: "Open the treasure" leads to the good ending, "Leave" to the sad one.

Change the background

Inputs: Background image (empty = none), Transition, Slow background movement, Movement duration (seconds), Middle layer, transparent (empty = none), Foreground in front of the characters, transparent (empty = none), Movement distance

Puts a picture as the background, full screen, behind the story's characters (fading or at once). Empty picture = no more background.

Example: the meadow at the start, then the forest when Hana goes looking for her cat.

Pass through the scenery

Inputs: Image that passes, Movement (steps), Where does it pass?, Image height (pixels), Image animation (name, optional), Animation speed (frames per second)

Makes an image (bird, cloud, mosquito…) cross the background of a story, following a movement made in Assets → Movement. Choose behind or in front of the characters (the text box always stays on top). “Height” sets the size of the image. If the image is an animation (a bird flapping its wings), type its name in “Image animation” and the speed in “Speed (images per second)”.

Example: a bird flying across the sky while Hana talks.

Stop the passing images

Removes all the images currently crossing the story background (started by “Pass through the scenery”).

Example: the mosquito leaves when the dialogue is over.

Show / hide a character

Inputs: Character, They…, Emotion, Place on screen, Character entrance

Brings a story character in (emotion, place, entrance: fade, slide, jump), changes their emotion or makes them leave, without speaking.

Example: Lyn comes in from the right while Hana is talking.

Animate a character

Inputs: Character, Move to…, Size (100 = normal, 120 = bigger), Number of little jumps, Duration (seconds), Movement style, Shake (it trembles), Wait for the end before continuing

Animates a character already on screen: it slides to another place, grows or shrinks, does little jumps or shakes. You set the duration and the style (even, smooth, quick then soft, slight overshoot, bounce). "Wait for the end" holds the story until the movement is over; otherwise the story goes on while it moves. The character must have been shown first with “Show / hide a character”.

Example: Hana slides from left to right with a bounce while she says "Wait for me!".

Novel mode (full-screen text)

Input: What to do?

Switches to "novel mode": the text fills the whole screen over a darkened background and the lines of “Say a line” pile up one under the other, like in a book. When the page is full, it turns by itself. "New page" clears it right away; "Back to the dialogue box" brings back the usual box.

Example: A night-time narration in novel mode, then back to the dialogue box for the conversation.

SMS mode (phone conversation)

Inputs: What to do?, Who writes to you (name and photo on top), Who is "me" (their lines on the right), Text under the name (empty = "online")

Shows the conversation as text messages on a phone: the lines of “Say a line” become bubbles (on the left for whoever writes, with three little dots "…" before they appear) and the answers of “Ask a choice” are picked at the bottom of the phone, then arrive on the right. The narrator writes a small caption in the middle (for example "Last night, 10:14 pm"). "Who writes to you" gives the name and photo at the top; "Who is me" makes a character write on the right without going through a choice. "Clear the conversation" empties the phone; "Back to the dialogue box" leaves the mode. Everything is set in the Dialogue style: colours, size, time of the "…", full-screen phone…

Example: SMS mode (turn on, who writes to you: Hana) → Say a line (Hana: "Are you there?") → Ask a choice ("Yes, tell me" / "Why?").

Unlock an achievement

Inputs: Achievement name, Description (shown in the list), Achievement image (empty = a star), Hint while it is hidden (empty = none)

Unlocks an achievement: an "Achievement unlocked!" banner slides in at the top of the screen (only the first time in the published game; every time in the editor so you can see it). The achievement joins the "Achievements" tab of "Endings and gallery" of the “Story title screen”: it stays hidden behind "???" (with a hint if you write one) until it is won. Put one at the end of a story, in a secret branch, after “Friendship (hearts)”… The banner is set in the Dialogue style: colours, frame image, time, place (top or bottom), sound.

Example: End the story (ending "The lost sock") → Unlock an achievement (name "The lost sock", description "Secret ending found").

Replayable scene (gallery)

Inputs: Start or end of the scene, Scene name (gallery)

Marks a scene the player can watch again from "Endings and gallery" of the “Story title screen” ("Scenes to replay" tab). Put one at the "Start of the scene": when the story passes it, the scene unlocks and the state of the story is remembered. Put another at the "End of the scene": when replaying, the story stops there and goes back to the gallery. Nothing is saved during a replay. Music started with “Play music” also unlocks in the "Music" tab.

Example: "The clearing": one node at the start of the meeting with Hana, another right after she leaves.

End the story

Input: Ending name (optional: it counts in "Endings and gallery")

Clears the dialogue box, the characters and the background of the story: the game takes over again. If you give an "Ending name", this ending is remembered forever and counts in "Endings and gallery" of the “Story title screen”; the saved game is erased.

Example: "Friends of the cabin" after the last line, then back to the title screen.

Friendship (hearts)

Inputs: Who?, Hearts to add (−1 to remove), Maximum number of hearts

Adds (or removes, with −1) friendship hearts for a character, up to the maximum. The hearts show at the top left during the story and a “+1 ❤” floats up (they can be hidden in the Dialogue style). They are saved with the game and restored by ◀ Back.

Example: after the kind answer “I'll stay with you”: Hana +1.

If the friendship…

Inputs: Who?, is, hearts  →  Outputs: True / False

Picks how the story goes on from a character's friendship hearts: the “True” output if the comparison is true, otherwise “False”. For an ending that depends on how you treated the characters.

Example: if Hana's friendship is at least 4 → the happy ending, otherwise the sad one.

Story title screen

Inputs: Story title, Background picture (empty = the current background)  →  Output: New game

Shows the story title over a picture, with big buttons: "Continue" (resumes where the player left off, with the background, characters, music and variables: the story saves itself at every line), "New game" (the output: the start of the story) and "Endings and gallery" (endings found and backgrounds already seen, the others are locked). During the story, the ◀ Back button returns to the previous line, even before a choice.

Example: placed right after "At start"; every “End the story” comes back to it.

Ask the player for a text (name…)

Inputs: Variable, Question, Suggested answer

Opens a small window with the keyboard: the player types a text (their name…), stored in the chosen variable; it continues when they tap OK. In lines, {prenom} shows this text.

Example: "What's your name?" → variable prenom → “Say a line” "Nice to meet you, {prenom}!".

Physics

Set the physics world

Inputs: Gravity downwards (%, 100 = normal, 0 = space, negative = upwards), Gravity to the right (%, negative = left: a constant wind), Precision, Resting objects fall asleep (lighter on the phone)

Sets the physics world of the scene: gravity downwards (100% = normal, 0 = space, negative = objects fall upwards), sideways gravity (a wind that always blows), calculation precision and whether resting objects fall asleep. Use it once, under “At start”. It only affects objects that have the “Realistic physics” behavior (⚙ Behavior).

Example: a level on the Moon: gravity 20%.

Adjust a physics object

Inputs: Object, Object type, Material (weight, bounce and grip at once), Contact shape, Weight (%, 100 = normal, empty = unchanged), Bounce (0 to 100, empty = unchanged), Grip (0 = ice, 100 = sticky, empty = unchanged), Object gravity (%, 0 = floats, empty = unchanged), Air drag (0 to 20, empty = unchanged), Top speed (pixels per second, 0 = no limit, empty = unchanged), Never rotates, Ghost (things pass through), Very fast object (never goes through a thin wall), Object layer (1 to 8, empty = unchanged)

Changes the settings of a physics object during the game: its type (normal, fixed, guided, or no more physics), material (wood, stone, metal, rubber, ball, ice, feather), shape, weight, bounce, grip, gravity, air drag, top speed, whether it rotates, whether it is a ghost or very fast, its layer. Any setting left empty or on “(do not change)” stays as it is. On an object without physics yet, choosing a type gives it physics.

Example: a ball that turns into rubber (material “Rubber”) when a bonus is picked up.

Push (physics force)

Inputs: Object, Push to the right (negative = to the left), Push downwards (negative = upwards), How, Where to push (off-center, the object starts to spin), Does weight matter?

Pushes a physics object with a force. “Steady push”: repeat it every frame (under “Every frame” or “Finger down”), the object speeds up as long as you push (a rocket, a wind, a fan). “A hit”: adds speed at once (a jump, a kick). By default the effect is the same on a light or heavy object; in the advanced settings you can make weight matter, and push away from the center to make the object spin. Values: pixels per second (per second squared for the steady push).

Example: a rocket game: “Finger down” → push upwards (-2500) steadily.

Set the speed (physics)

Inputs: Object, Speed to the right (pixels per second, empty = unchanged), Speed downwards (negative = upwards, empty = unchanged), Spin speed (degrees per second, empty = unchanged), How, Stop everything at once?

Sets the speed of a physics object, in pixels per second: to the right, downwards (negative = upwards) and spin in degrees per second. Any box left empty leaves that speed unchanged. “Replace” gives exactly this speed; “Add” adds it to the current speed. The “Stop everything” option sets all speeds to zero. Perfect for a jump (downward speed of -900), a sharp stop or a character moving at constant speed.

Example: a platformer jump: downward speed = -900, only if “If the physics object…” says the object is standing on something.

Launch (angle and speed)

Inputs: Object, Angle (degrees: 0 = right, -90 = up, 90 = down, 180 = left), Starting speed (pixels per second), How

Launches a physics object in a direction: you give the angle (0 = to the right, -90 = up, 90 = down, 180 = to the left) and the starting speed. Gravity then does the rest: the object follows a curve. Ideal for a slingshot game, a cannon, a ball throw. The angle can be a formula (for example the angle between the object and the finger).

Example: a slingshot: when the finger lets go, launch the bird at the angle of the elastic.

Explosion (physics blast)

Inputs: Object, Center: X position (empty = at the object's center), Center: Y position (empty = at the object's center), Blast radius (pixels), Force at the center (speed given, pixels per second), Only objects with this tag (empty = all)

Blasts every physics object around a point: the closer to the center, the harder they are thrown, and they start to spin. The center is the middle of the chosen object, or an (x, y) point if you write one. You set the blast radius and the force (the speed given at the center). Option: only objects with a certain tag. The node destroys nothing: combine it with “Particle effect” and “Destroy object” for a real explosion.

Example: a bomb: when it touches the ground, explosion with radius 500 and force 1800, then destroy the bomb.

Link two objects

Inputs: Object A, Object B, Kind of link, Link name (to adjust or cut it later), Point of object A where the link is made, Point of object B (rod, spring, rope), Shift the point to the right (pixels), Shift the point downwards (pixels), Do the two objects collide?, Show the rope (spring, rod, rope), The finger can cut it, Length (pixels, 0 = the starting distance), Spring or suspension stiffness (1 = soft, 10 = firm), Damping (0 to 100: higher means less bouncing), Lower limit (degrees for a hinge, pixels for a slider; empty = none), Upper limit (degrees or pixels; empty = none), Rail or suspension direction (degrees: 0 = horizontal, 90 = vertical; empty = automatic), Motor: speed (degrees per second for a hinge or wheel, pixels per second for a slider; 0 = no motor), Motor or brake strength (1 = weak, 10 = normal, 100 = very strong)

Links two objects so they hold or move together, like in real life. Kind of link: hinge (swings around a point: door, pendulum), rigid rod (fixed distance), spring (elastic, with stiffness), rope (maximum length), slider (slides along a rail, with limits and motor), weld (stuck together), wheel with suspension (car: A = the body, B = the wheel, with motor), brake (top view). Object B is optional: without B, object A is attached to a fixed point of the scenery. Give the link a name to adjust it (“Adjust a link”) or cut it (“Cut a link”) later. In the advanced settings: point on each side, limits, rail direction, motor, collision between the two objects. Both objects need the “Realistic physics” behavior (except a fixed support).

Example: a pendulum: A = the ball, B = a small fixed object at the top, type “Hinge” or “Rigid rod”; a bridge: planks linked by hinges.

Place a body (ragdoll, car…)

Inputs: Which body? (made in Assets → Body), X position of the centre (empty = middle of the screen), Y position of the centre (empty = middle of the screen), Name of this copy (empty = the body name)

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Places in the scene a body made with the “Body” tool in Assets: a ragdoll, a car, a crane… All its parts arrive at once, already linked (hinges, springs, wheels…), and fall or roll with realistic physics. Each part is called “body name_part name” and carries the body's tag; each link is called “body name_link name” (to adjust it with “Adjust a link”). Placing the same body twice gives “Car” then “Car_2”.

Assemble the parts

Inputs: Parts' tag, Wheels' tag, Wheel motor (degrees per second, 0 = free wheel), Motor strength, Wheels with suspension

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Builds a vehicle (or any object made of several pieces): moving physics objects with the parts' tag that touch each other are welded together; objects that also have the wheels' tag become wheels, mounted with suspension on the part above them. The motor turns the wheels (degrees per second, 0 = free wheel). Example: “Go!” button -> For each object (piece) -> Change physics object (dynamic), then Assemble the parts (piece, roue, motor 600).

Draw with your finger

Inputs: What to do?, Ink (total length in pixels, 0 = no limit), Line thickness (pixels), Line color, Drawings' tag, The drawing…, Drawing over objects is not allowed

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. The finger draws lines in the scene: when it is lifted, the line becomes a real physics object (it falls, rolls, pushes) or stays in place. Ink runs out with the drawn length (variable “encre”, in %) and the variable “dessins” counts the lines. You cannot draw over a physics object (adjustable). “Stop drawing” puts the pencil away. Example: On Start -> Draw with your finger (ink 2500, thickness 16), then When a drawing is finished (# dessin) -> play a sound.

Adjust a link

Inputs: Link name, Motor: speed (0 = stop the motor, empty = unchanged), Motor strength (empty = unchanged), Spring or suspension stiffness (empty = unchanged), New length (pixels, empty = unchanged), New lower limit (empty = unchanged), New upper limit (empty = unchanged), Limits

Changes a link already created by “Link two objects” (found by its name): start, stop or speed up its motor, set its strength, the stiffness of a spring or suspension, the length of a rod or rope, the limits. Any empty box stays as before. Example: a car whose wheel motor starts when a button is pressed.

Example: “Gas” button: adjust the link “rear_wheel” with motor = 720; on release: motor = 0.

Cut a link

Inputs: Name of the link to cut, Or: name of an object whose links are all cut

Cuts a link: write its name, or write an object's name to cut all of its links. The objects separate and each falls on its own (a collapsing bridge, a cut rope, a detaching cabin).

Example: a trapped bridge: when the hero touches the lever, cut the link “plank_3”.

Grab with the finger (physics)

Inputs: Action, Only objects with this tag (empty = all), Softness of the grip

Lets you grab a physics object with the finger and drag it, like in real life: the object follows the finger with a bit of elasticity, pushes the others and can get stuck. Put it under “Finger down” (action “Grab and drag”): while the finger is down, the object under it is dragged; as soon as the finger lifts, it is released by itself (or use the “Let go” action). You can restrict the grab to objects with a tag, and set the softness of the grip.

Example: a crate puzzle: the player moves crates with a fingertip to build a tower.

If the physics object…

Inputs: Object, Question, Speed from which it counts (pixels per second), Grace time (seconds, for “has just touched the ground”)  →  Outputs: True / False

Asks a question about a physics object and follows the “true” or “false” exit: is it standing on something (to allow a jump), does it touch something, does it touch something above, is it at rest (asleep), is it moving fast, falling, rising. For “moves fast”, “falling” and “rising” the threshold in pixels per second is set in the advanced settings. You can also read values directly in a formula: object.vitesse, object.masse, object.vitesseRotation.

Example: a platformer jump: “Jump button” → If the object is standing on something → set downward speed to -900.

3D camera

Hero 3D camera

Inputs: View, Distance (m, 0 = automatic)

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Changes the camera that follows the hero of a 3D scene: behind them, top view, or through their eyes (first person). For example: top view in a dungeon, through their eyes when entering a house.

Camera following an object (3D)

Inputs: Object, Distance (meters), Height (meters), Always behind it, Smoothness (0 = locked, 10 = very smooth)

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. The camera follows any 3D object (a car, a ball, a spaceship), not just the hero. "Always behind it" = it turns with it; otherwise it keeps its side. The "Hero 3D camera" node gives it back to the hero.

Free camera (3D)

Inputs: Camera position: X (cm), Camera position: Y (height, cm), Camera position: Z (cm), Point looked at: X (cm), Point looked at: Y (height, cm), Point looked at: Z (cm), Duration (seconds, 0 = instantly)

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Places the camera wherever you want and makes it look at a point (in cm). With a duration, it moves there smoothly. For example: a top view for a strategy game, a fixed shot in a corridor, a security camera. The "Hero 3D camera" node gives it back to the hero.

Cinema camera (3D)

Inputs: Object, Duration (seconds), Distance (meters), Height (meters), The hero waits

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. A small movie scene: the camera goes to look at the chosen object (a door opening, a boss arriving) for the duration, then comes back to the hero. The next nodes start afterwards. The hero waits meanwhile (unless “The hero waits” = no).

Camera in place of an object (3D)

Inputs: Object A, Object B, Duration (seconds, 0 = instantly)

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. The camera moves to the object's place and looks in front of it (where its front side faces), or toward object B if you choose one. Place small hidden objects in the scene (Visible in the game = no) as cameras: security cameras, shots of a cutscene, a horror game. "Hero 3D camera" gives the camera back to the hero.

Rotate the camera with a finger (3D)

Input: Active

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. The player turns the camera by sliding a finger in the scene: around the followed object ("Camera following an object"), around the point it looks at ("Free camera"), or around the starting view if there is no hero. For example: admiring an object from every angle, a 3D board game. The hero already has his own finger camera.

Camera field of view (3D)

Inputs: Angle (degrees, 75 = normal), Duration (seconds, 0 = instantly)

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Changes the camera's viewing angle: smaller = you see closer (zoom, a rifle scope), bigger = wide angle (feeling of speed in a race). With a duration, the change is smooth. 75 = the normal view.

3D movement

Rotate (3D)

Inputs: Object, How, Turn around itself (degrees) (empty = no change), Tilt forward (degrees) (empty = no change), Tilt sideways (degrees) (empty = no change), Duration (seconds, 0 = instantly)

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Rotates a 3D object in every direction: around itself, tilted forward or backward, tilted sideways. "Add" turns it further; "Set to" gives the exact angle. With a duration, it turns smoothly. For example: a door that swings, a plane that banks in turns. A physics object is turned by impacts instead.

Move in its direction (3D)

Inputs: Object, Forward (cm, negative = back up), Sideways (cm, + = right), Up (cm)

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Moves a 3D object in the direction it is facing (or backward, or sideways). 100 cm = 1 meter. In "Every frame", it moves all the time: a drone, a fish, a spaceship. With "Rotate (3D)", you can make any home-made vehicle.

Look at (3D)

Inputs: Object A, Object B, Also look up or down, Duration (seconds, 0 = instantly)

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Turns the object (Object) so it faces another object (Object B), by the shortest way. For example: a turret that aims at the hero (in "Every frame"), a guard who turns around when he hears a noise. With "Also look up or down", it also aims in height.

Look at a point (3D)

Inputs: Object, X (cm), Y (height, cm), Z (cm), Also look up or down, Duration (seconds, 0 = instantly)

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Turns the object toward a point in the scene (X, Y = height, Z, in cm). The boxes accept formulas: for example =Heros.x to aim at the hero, or the green wire "Touched point on the ground (3D)" to look where the finger touches.

Move smoothly (3D)

Inputs: Object, Offset X (cm), Offset Y, height (cm), Offset Z (cm), Turn by (degrees), Duration (seconds)

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Moves a 3D object smoothly from its place: a door that rises (Y 300) or opens by turning (90 degrees), a bridge that lowers, a chest that opens. Its solid body follows: you can pass when the door is open.

Follow a path (3D)

Inputs: Object, Tag of the path points, Speed (m/s, 0 = stop), Loop, Looks where it goes

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. The object glides along a smooth curve that passes through all the objects of a tag, in the order of their names (Point1, Point2, Point3…). Place the points wherever you want (hide them afterwards). For example: a roller coaster car, a bird flying in circles, a movie camera, a patrol. Speed 0 = it stops.

Follow an object (3D)

Inputs: Object A, Object B, How, Also turns with it

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. The object (Object) stays stuck to object B, keeping the same gap as when the node ran: a lamp that follows the hero, a sword in his hand, a flag on a boat. "Also turns with it": it turns around B when B turns. "Stop following" sets it free.

Attach to a hand (3D)

Inputs: Object A, Object B, How, Where, Exact bone name (optional)

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. The object (Object) is held in the character's hand (object B, an animated 3D model) and follows all its moves: a sword that strikes with it, a torch, a hat on the head, a bag on the back. It keeps the orientation you gave it in the editor. "Detach" lets it go.

Throw in an arc (3D)

Inputs: Object A, Object B, Toward, X (cm), Y (height, cm), Z (cm), Height of the arc (meters), Points where it goes (arrow)

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Throws the object in an arc so it lands right on object B (or on a point X, Y, Z): a grenade, a ball into a basket, an arrow shot into the air, a springboard that sends the hero onto a platform. No math to do: just choose the height of the arc. "On arrival" output when it has arrived.

Move with the joystick (3D)

Inputs: Object, Speed (m/s, 0 = stop), Looks where it goes

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. The joystick (the HUD one, or the gamepad) moves the object along the ground, relative to the camera: up on the joystick = straight ahead on the screen. To steer any object, not just the hero: a marble, a ship, a robot. A physics object stops against walls; a simple object goes through them. Speed 0 = it no longer follows the joystick.

3D physics

Push (3D physics)

Inputs: Object, Directions, Forward, or X (m/s), Up, or Y (m/s), To the right, or Z (m/s), Duration (seconds, 0 = instantly)

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Gives momentum to a 3D physics object ("Physics object" behavior) or to the 3D hero. Duration 0 = a quick hit: kicking a ball, a trampoline, an explosion. With a duration: a push that lasts (wind, jet engine). The numbers are in meters per second.

Set the speed (3D)

Inputs: Object, Directions, Forward, or X (m/s) (empty = no change), Up, or Y (m/s) (empty = no change), To the right, or Z (m/s) (empty = no change)

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Gives an exact speed to a 3D physics object or to the 3D hero (in meters per second). An empty box keeps the current speed in that direction. For example: 0 everywhere to stop it dead, or a conveyor belt that always gives the same speed.

Gravity (3D)

Inputs: Object, For, Strength (%, 100 = normal, 0 = floats)

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Changes the force that makes physics objects, the hero and enemies fall: 100% = normal, 30% = on the Moon (you jump higher), 0 = everything floats, negative = everything falls upward. "The whole scene" or "Only this object" (a floating balloon).

Attach two objects (3D)

Inputs: Object A, Object B, How, Spring stiffness (1 = soft, 10 = hard)

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Attaches a physics object (Object, "Physics object" behavior) at the spot where object B is. Hinge: a door that opens when pushed, a drawbridge. Ball joint: a pendulum, a chain (several objects hooked to each other). Spring: the object bounces around B. Welded: the two stay stuck together. If B is also a physics object, both move together; otherwise the object is hooked to that spot.

Detach (3D)

Input: Object

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Removes all the object's attachments (hinges, ball joints, springs, welds) made with "Attach two objects (3D)". For example: the pendulum's rope breaks, the door falls off its hinges.

Freeze / release a physics object (3D)

Inputs: Object, How

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. A frozen physics object no longer falls or moves, even when pushed. Released, it falls again. For example: a rock hanging up high that falls when the hero walks under it, a crate that only moves after a lever.

Explosion blast (3D)

Inputs: Object, Strength (m/s at the center), Radius (meters), Also blows the hero away

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Pushes everything away around the object, like an explosion: nearby physics objects fly outward (less strongly at the edge), and the hero too if you want. A negative strength pulls them toward the center. Use it with a particle effect and a screen shake.

Set a physics object (3D)

Inputs: Object, Weight (kg) (empty = no change), Bounce (%, 0 = none, 100 = magic ball) (empty = no change), Slide (%, 0 = sticks, 100 = ice) (empty = no change), Doesn't tip over

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Changes a physics object ("Physics object" behavior) during the game: its weight (a heavy crate the hero can barely push), its bounce (a ball), how it slides (a puck on ice) and whether it can fall over ("Doesn't tip over" = it stays upright, like a skittle stuck to the ground or a homemade character).

3D look and atmosphere

Size (3D)

Inputs: Object, Width (%) (empty = no change), Height (%) (empty = no change), Depth (%) (empty = no change), Duration (seconds, 0 = instantly)

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Changes the size of a 3D object, in width, height and depth separately. 100% = its size at the start of the game, 200% = twice as big, 50% = half. For example: a balloon that inflates, a mushroom that squashes when you jump on it (height 60%).

Object material (3D)

Inputs: Object, Shine (%, 0 = matte, 100 = mirror) (empty = no change), Metal (%) (empty = no change), Own light (%, 0 = none) (empty = no change), Color of its own light

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Changes how a 3D object looks: shiny or matte, made of metal, or glowing with its own light (a lamp, a crystal, eyes that light up). Also works on imported models. For color and transparency: "Modify Color" and "Transparency".

Set a light (3D)

Inputs: Object, On?, Color (empty = no change), Strength (%) (empty = no change), Range (meters) (empty = no change), Duration (seconds, 0 = instantly)

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Turns on, turns off or changes a light placed in the scene (lamp, torch, spotlight): its color, its strength, how far it lights. With a duration, the change happens smoothly. For example: a light switch, a red alarm, daylight rising in a room.

Change the model (3D)

Inputs: Object A, Object B

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. The object takes the look (the 3D model and its animations) of object B, often a hidden object placed nearby. It keeps its place, its size and its nodes. For example: a door that becomes a broken door, a character who changes outfit, an egg that becomes a dragon.

Play a model animation (3D)

Inputs: Object, Animation, Loop, Speed (%, 100 = normal), Blend with the previous animation (seconds)

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Plays an animation of an imported 3D model (attack, wave, dance…), at the speed you want (50% = slow motion, 200% = twice as fast). The blend switches smoothly from the previous animation to the new one. At the end (without loop), the character goes back to its usual animations.

Play a sound at this spot (3D)

Inputs: Object, Sound, Volume (%), Heard up to (meters)

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Plays a sound once, at the object's spot: louder when the camera is close, silent when it is far. For example: a distant explosion, a creaking door, a monster's footsteps. For a sound that loops (river, campfire), set the object's sound in the Inspector.

3D atmosphere

Inputs: Time of day, Fog (0 to 100, empty = no change), Sun strength (0 to 200, empty = no change)

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Changes the atmosphere of the 3D scene during the game: time of day (morning, noon, evening, night), fog, sun strength. For example: night falls when the hero enters the forest. The scene settings come back in the next scene.

Change 3D quality

Input: Level

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Changes the quality level of 3D scenes for the player (Low, Medium, High, or Automatic = your settings), right away and for their next games. Connect it to the buttons of your options menu.

3D detection and values

Ray: what is in front? (3D)

Inputs: Object, Direction, Range (meters), Only objects with the tag (empty = all), Variable that receives the distance (cm, optional)

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Casts an invisible ray from the object (in front of it, behind, to the side, up or down) and looks at what it hits first. "Hits something" output: the hit object becomes the involved object. Otherwise: "Nothing". With a tag, other objects are passed through. For example: does the guard see the hero? Is there a wall ahead? A laser shot.

If the object sees another one (3D)

Inputs: Object A, Object B, Field of view (degrees, 360 = all around), Range (meters), Walls block the view

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Checks if the object (Object) sees object B: close enough, in front of it (in its field of view), and not hidden behind a wall. "Sees it" output: object B becomes the involved object. For example: a guard who raises the alarm when he sees the hero (in "Every frame"), a stealth game.

Touched point on the ground (3D)

Inputs: Gives, Ground height (cm)

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Green wire: the spot on the ground the finger touches in the 3D scene (x, y or z, in cm). For example: "Glide to" this point to go where you touch, or place a tower there.

3D value of an object

Inputs: Object, Gives

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Green wire: a value specific to 3D. Speed (m/s); upward speed (negative when it falls); on the ground (1 = yes, 0 = no); tilts in degrees. In a formula: Heros.vitesse3d, Heros.vitesseHaut, Heros.auSol, Heros.rotationX, Heros.rotationZ.

Angle toward an object (3D)

Inputs: Object A, Object B

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Green wire: the angle (in degrees) the object must turn to in order to look at object B, along the ground. Plug it into the "Turn around itself" box of "Rotate (3D)" (Set to); or compare it with the object's rotation. In a formula: angle3d(Garde, Heros).

For each nearby object (3D)

Inputs: Object, Radius (meters), Tag (empty = all objects)

Next version: only in Yop2D Next, the new 2D + 3D version of Yop2D (coming soon): this node does not exist yet in the current version. Runs the "For each one" branch once for each object less than "Radius" meters from the object, from nearest to farthest: it becomes the involved object. Then the "Done" branch. For example: a bomb that takes life from all the enemies around, a magnet that pulls nearby coins. The variable nombre_proches gives how many there are.

Beginner guides → ⬇️ Download Yop2D