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
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
Runs when the finger is lifted above the chosen object.
Example: confirm a button only when it is released.
Object Held Down
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
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
Runs when the player drops the object they were dragging.
Example: check whether a puzzle piece is in the right place.
Collision A/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
Runs once, when object A stops touching object B (it leaves the zone).
Example: close a door when the player walks away.
On Hover
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
Runs when the finger leaves the object it was over.
Example: turn off a button's highlight.
On Impact (Physics)
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
Runs every time the value of the chosen variable changes.
Example: when “vie” (health) changes, update the health bar.
Local Event
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
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
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
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
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
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
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
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
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
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)
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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)
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
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
Puts the object directly at position X, Y (teleport).
Example: put the player back at the start.
Push object
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
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)
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
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
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
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
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
Stops the object dead: no more speed, push, jump or automatic movement.
Example: freeze an enemy hit by an ice spell.
Stop movements
Turns off the object's automatic movements: move continuously, pursue and flee.
Example: the enemy stops chasing when the player hides.
Move forward continuously
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)
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)
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
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)
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
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)
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
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
Object A moves by itself towards object B, at the chosen speed.
Example: a ghost following the player.
Flee an object
Object A moves by itself away from object B, at the chosen speed.
Example: a chicken running away from the player.
Screen wrap
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
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
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)
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
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
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
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
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
Gives the variable a new value (a number, a text, yes / no or a calculation).
Example: set “score” back to 0.
Add to Variable
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
Keeps the variable (a number) between a minimum and a maximum.
Example: health never goes above 100.
Random number
Puts a random number in the variable. random(1, 6) gives a number from 1 to 6.
Example: a dice roll.
Add to inventory
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
Removes the object from the inventory.
Example: use the key to open the door.
If in inventory
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
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
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
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
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
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)
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
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
Replaces the text of a Text object. Start with = to show a calculation.
Example: ="Score: " + score
Write to the log (for debugging)
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
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
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
Adds text at the end of a variable of type Text.
Example: type a password letter by letter.
Logic & Conditions
Condition
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…
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
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
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
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
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
Runs the “Local Event” with this name, in the same Blueprint, then continues.
Example: call “GameOver” from the fall and from the timer.
Sequence
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
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
True if the object is completely off the screen (plus the margin), False otherwise.
Example: destroy bullets that leave the screen.
If / Else
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
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
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)
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
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)
Gives the object a new tag (label).
Example: a defeated enemy gets the tag “harmless”.
Destroy Object
Removes the chosen object from the scene.
Example: choose “Implied Object” to destroy the coin the player just touched.
Destroy by Tag
Removes all objects with this tag.
Example: a bomb destroys every “Enemy” object.
Generate clone (Spawner)
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
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
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
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
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)
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)
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
Sets how full a progress bar is, between its minimum and maximum.
Example: “New progress” = vie (health), for a health bar.
Create object
Creates a copy of the chosen object (the model) at position X, Y.
Example: add a crate at an exact spot.
Remove health points
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
Sets the object's transparency: 0 = invisible, 1 = solid.
Example: 0.5 for a half-transparent ghost.
Visibility
Shows (true) or hides (false) the object.
Example: show a “You win!” message hidden at the start.
Bring to front / send back
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
Changes the object's size: 1 = normal, 2 = twice as big, 0.5 = half.
Example: the player grows after eating a mushroom.
Change 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
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
Changes the object's color.
Example: a button turns green when the answer is right.
Color 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)
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
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
Flips the object: Horizontal (left / right) or Vertical (up / down).
Example: the character faces the way it walks.
Background scrolling (depth)
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
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
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)
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
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
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
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
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
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
Changes the preset of a “Particles” object during the game.
Example: a fire that turns into smoke when it is put out.
Electrocution
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
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
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…)
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
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
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
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…
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
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
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
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
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
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
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
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
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
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
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)
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)
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
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…)
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
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…
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
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
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
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
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)
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
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
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
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
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
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…
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
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)
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Green node: the defense bonus of the terrain under the chosen object.
Example: show a unit's defense bonus.
Distance between 2 objects
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
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
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)
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
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
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
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)
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
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
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
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
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
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
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
Shakes the screen with the chosen strength and duration (in milliseconds).
Example: an explosion: intensity 15, duration 400.
Screen effects and transitions
Screen flash
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
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
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
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…)
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…)
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
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
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
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
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
Stops the animation and goes back to its first frame.
Example: the character stops walking.
Pause animation
Pauses the animation on the current frame.
Example: freeze the character during a pause.
Resume animation
Resumes the animation where it was paused.
Example: after the pause.
Animation speed
Changes the animation speed (frames per second) without restarting it.
Example: running faster = faster animation.
Look at (character)
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)
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)
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)
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)
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
Plays a sound effect. Several sounds can play at the same time.
Example: a “bling” when a coin is picked up.
Play music
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
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
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
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
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
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
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
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
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
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)
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)
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
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)
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
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)
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…
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
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…)
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
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
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)
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)
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)
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)
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
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…)
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
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
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
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
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)
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…
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
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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
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
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)
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)
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)
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
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)
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)
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.