ℹ️ 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
Smoke, rain, lightning, filters, daylight and the camera: here is how to make each effect in Yop2D Next. Names in bold are the ones you see on the screen.
👉 A word you don't understand? See Yop2D words.
How do I add smoke, sparks or fire?
- An effect that lasts (a smoking chimney, a campfire): Object button → Effects → Particles. In the Inspector, tap the Effect line and choose Smoke, Sparks, Fire… The object keeps sending them out during the game.
- To turn it on or off during the game: Particles on / off node. To send a lot at once: Particle burst.
- A one-off effect on any object (an explosion, sparks when you tap): Particle effect node, with the preset of your choice. See Make an explosion.
How do I make it rain or snow on the whole screen?
- Atmosphere (rain, snow, night…) node, for example after On Start. Setting What falls or floats: rain, storm (with lightning), snow, petals, leaves, fireflies, bubbles, mist…
- The same node can also change the Light (night, sunset, dream…) and play the matching sounds (rain, wind, thunder).
- The atmosphere stays until the next Atmosphere (rain, snow, night…) node. To remove it: choose "none (stop)".
How do I make a flash when the hero is hit?
- Screen flash node: the whole screen turns one color (white, red…) then fades by itself. Set the color and the duration in seconds (0.3 = a quick flash).
- Example: If object touches Tag (the hero touches an enemy) → Screen flash in red.
- For even more effect: Blink on the hero, or Camera shake (see Make the screen shake).
How do I put a filter (retro, black and white…) on the game?
- Screen filter node: 32 "looks" for the whole game, for example black and white, sepia, old film, retro VHS, Game Boy, underwater, nightmare, flashlight…
- Duration 0 = the filter stays until you stop it. You can also keep it in the next scene.
- To remove it smoothly: Stop the filter node.
How do I make a day and night cycle?
- Day and night cycle node after On Start: the game goes by itself from day to evening, to night, to dawn, then back to day.
- You choose the length of a full day in seconds (60 to 120 works well), the starting moment, and whether the cycle repeats forever. Length 0 = stop the cycle.
- Add lamps with Light source (torch, lantern…); set Switching on to "Only when it is dark": they turn on by themselves at night. See also Make night with a lamp.
How do I make a trail behind an object?
- Object trail node on the object: it leaves particles behind it when it moves (preset Trail, Fire, Sparks…), with the color and size you want.
- Put it on the model of a shot: every shot will have its trail.
- To remove it: the same node with the preset "None".
How do I stop the camera from leaving the level?
- Camera limits node, right after Follow with camera: the camera follows the hero but never shows the empty space past the edges.
- Write the edges of your level in pixels: Minimum X 0 (the left edge), Maximum X = the width of the level (a landscape screen is 1920 pixels wide: a level of 3 screens = 5760), then Minimum Y and Maximum Y the same way.
- All at 0 = no more limits. See A camera that follows the hero.
How do I zoom during the game?
- Zoom the screen node: Zoom 150 = one and a half times bigger, 100 = back to normal. The zoom is smooth, over the duration you choose.
- Towards setting: the center, the face, the left, the right, the top or the bottom.
- The buttons and texts of the HUD don't get bigger.
How do I scroll the camera with a finger, like on a map?
- First Camera limits (the size of your map), then Scroll the camera with a finger: by sliding a finger on the scene, the player moves the camera.
- A simple tap is still a tap: you can still tap a tower or a button. HUD buttons never scroll.
- You can choose to scroll only sideways, or only up and down. The finger replaces Follow with camera.
What is "Camera smoothing" for?
- The Camera smoothing node sets how fast the camera catches up with the object it follows (with Follow with camera).
- Follow speed: 1 = the camera is glued to the hero; 0.1 = it follows smoothly, a little behind (this is the starting setting); 0.03 = very soft.
- Use it for a game that is gentler to watch, or on the contrary for a camera that never lets go of the hero.
How do I give an object an electric shock?
- Electrocution node on the object: lightning crackles around it, it blinks, shakes and throws sparks.
- Set the lightning color, the duration in seconds (0 = endless, for an electric fence) and the intensity from 1 to 3. Intensity 0 = stop.
- Example: the hero touches a trap → Electrocution (1 second) → Wait 1 second → Restart the scene.
👉 All these nodes are in the Blueprint, categories Particles and lights, Camera and Screen effects and transitions. Or type a word (rain, flash, zoom…) in Search for a node…. To go from one scene to another with an effect: Make a transition.