ℹ️ 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 scene gets dark and the hero carries a lamp: only the area around it is lit.
You need:
- a 2D project open in Yop2D Next.
Step 1: the hero
- Put an object in the scene (an image or a Square) and name it heros.
- Select heros, tap ⚙ Object behavior in the Inspector and choose Top-down character.
- Tap Object → Interactive → Joystick.
Step 2: the nodes
- Open the Blueprint.
- On Start → Darkness and light mood: Darkness (%, 0 = full day, 100 = almost pitch black) 85 → Light source (torch, lantern…): Object heros, Radius (pixels: distance from the light's center) 250
The nodes
On Start
→
Darkness and light mood85
→
Light source (torch, lantern…)heros · 250
Try it
Tap Play: everything is dark except around the hero. Move it: the light follows.
👉 Flicker: Torch (strong) for a moving flame. A light can also be put on a lantern or a window.