ℹ️ For Yop2D Next, the new 2D + 3D version of Yop2D (coming soon). Button and node names are those of Yop2D Next.
🔍 How do I…? All short recipes, with a search
The Blueprint is the screen where you place the nodes that bring your game to life. Here are the answers to the most common questions. Names in bold are the ones you see on the screen.
👉 A word you don't understand? See The words of Yop2D.
How do I add a node?
- In the Blueprint, tap the arrow at the top left: the NODES list opens.
- Type a simple word in Search for a node… (jump, sound, health…), or open a category. The nodes you used last are in RECENT.
- Tap the node: it appears in the middle of the screen and its settings window opens (if it has settings).
- Another way: drag your finger from a node's output circle and let go in an empty spot. The What's next? list opens: the node you choose is placed and already connected.
How do I connect two nodes (and cut a wire)?
- Drag your finger from a node's right circle (its output) to the In circle on the left of the next node. A wire appears: the 2nd node will run after the 1st.
- An output has only one wire: if you connect it somewhere else, the old wire goes away. To do several things, put the nodes one after another, or use Sequence.
- To cut a wire: grab its end, on the In side, and let go in an empty spot. If the What's next? list opens, close it with ✕.
- A node that no wire connects to an event (like On Start) never runs.
Why are some nodes in "3D-only nodes"?
- These nodes (3D camera, 3D movement, 3D physics…) are made for 3D scenes. In a 2D scene, they are no use.
- In a 2D scene, this part is folded at the bottom of the list, so it stays out of your way. Tap it to open it.
- In a 3D scene, it is open at the top of the list. The other nodes (2D AND 3D NODES) work in 3D too.
How do I tidy up a messy Blueprint?
- Tap Tidy up in the top bar: each event and what follows it are lined up, from left to right.
- Don't like the result? Cancel puts the nodes back the way they were.
- Show all shows all the nodes at once. To group nodes under a title: Frame (see the sticky note question below).
How do I copy nodes to another scene?
- Tap Choose, then the nodes to copy (or drag your finger in an empty spot to draw a box around them).
- Tap Copy, then Done.
- Switch scenes with the button that shows the scene name (▾), at the top of the Blueprint.
- Tap Paste: drag the nodes into place, then Done. It also works in another project.
- Check the target object in ① On what?: the new scene may not have an object with the same name.
What is a sticky note for in the Blueprint?
- A Sticky note is a note for you ("here, the player loses a life"). It changes nothing in the game.
- Tap Sticky note in the top bar, write a Title and a Text, pick a Color. Tap it later to change it; Remove deletes it.
- The small – button folds it into a small "i" icon.
- Frame draws a box around nodes, with a title and an explanation (? button). Moving the frame moves the nodes inside it.
How do I write a formula (=score + 1)?
- In a setting, start with =:
=score + 1gives the value of the score variable, plus 1. Without =, a text setting shows exactly what you typed, word for word. - Examples that work:
=random(1, 6)(a number from 1 to 6, 6 included),=player.x + 50(the position of the player object, plus 50),="Score : " + score,=distance(player, boss). - On a wide enough screen (tablet), the VALUES TO INSERT column is on the left of the settings window: tap a field, then a value (Random (1 to 6), a variable, an object's position). It is added to the formula, no typing needed.
- In Condition, you don't need =: write
score >= 10. To choose between the different test nodes, see What's the difference between…?.
What are green nodes and green wires?
- A green node (Values (green wires) category) does nothing on its own: it works out a number during the game (Random number, Object value, Calculation, Distance between 2 objects…).
- Its green wire replaces a setting of another node: for example, the speed comes from Random number.
- To add one: in the settings window, tap Connect a value next to the setting, then pick the green node. Or drag a green node's ◆ diamond onto a node: Connect to which setting?.
- To remove it: Disconnect (✕). A formula often does the same thing faster: see the question about formulas.
How do I do something every 2 seconds?
- Connect On Start → Repeat.
- Set Repeat: 2 seconds between each time, and the number of times (0 = endless). Give it a name (for example "rain") if you want to stop it later.
- Connect its middle output ("Each time") to your action: Create object, Play sound…
- To stop it: Stop a timer with the same name (empty = all timers).
- Don't put it under Every frame. To do something just once after a while: Wait. Full example: Make enemies appear.
What is the "Sequence" node for?
- It runs its outputs 1, 2, 3, 4 one after another, from a single event.
- Example: On Start → Sequence: 1 = place the player, 2 = start the music, 3 = show the score.
- Handy because an output has only one wire: Sequence gives you 4 neat starting points. An output with no wire is skipped.
- Careful: a Wait in branch 1 does not delay branch 2. To wait, put the nodes one after another.
What is the "By value" node for?
- It picks one output depending on a value, instead of stacking several tests.
- Write the value to test (for example
=bonus, a variable) and up to 6 cases (1, 2, 3… or words: sword, bow). - The node follows the output of the first matching case: 1 = sword, 2 = bow, 3 = wand. If no case matches, it follows None.
- Afterwards, it goes on through its last output ("Then"), whatever the case.
What is "Cooldown" for (stop something repeating too fast)?
- It lets an action through at most once per delay, in seconds. Perfect for a shot or a jump that can't be spammed.
- Example: On Object Click (fire button) → Cooldown 0.5 → Ready output → Shoot an object.
- Too soon? The node follows the other output ("Not yet"): leave it empty, or play a small sound.
- If you pick an object in ① On what?, each object has its own delay (each enemy shoots at its own pace). See also Shoot.
How do I do "for each enemy…"?
- The easiest way: many nodes accept Tags (every object with this tag) in ① On what?. The node then acts on all the enemies at once.
- To handle the enemies one by one (test them, count them): For each object (with a tag). Write the tag (enemy).
- Its For each one output runs once per enemy. Each time, that enemy becomes The involved object (the touched object): pick it in ① On what? of the next nodes. Test example: Condition
implique.x > 500. - When they have all been through, it follows Done. See also Several objects doing the same thing.
How do I send a "message" to run the same nodes from several places?
- In Yop2D, objects don't each have their own nodes: each scene has one Blueprint for all its objects.
- Place a Local Event event and give it a name (lost). Put the nodes to run under it.
- Anywhere in the same Blueprint, Call event with the same name runs these nodes. Prefabs placed in the scene hear it too.
- Between the scene and the HUD (two Blueprints): change a game variable, and catch it with When Variable Changes. For nodes you can use in every scene: see the next question.
How do I create my own node?
- In the Blueprint, tap the button that shows the scene name (▾), then Create my node… and give it a name (LoseLife). Also in the editor's RESOURCES panel, MY NODES part.
- A new Blueprint opens, with On Start: that is where your node starts. Put the nodes to run under it.
- Optional: My node settings → Add an input (for example "points"). In your node, write
=points. - Go back to your scene (same ▾ button). Use Run one of my nodes and pick your node: it works in every scene of the project.
👉 All the nodes, one by one: in the Blueprint, Help button → All nodes explained. A node that does nothing? See My game doesn't work.