ℹ️ 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 screen shakes for half a second, as after a hit. Just one node: Camera shake.
You need:
- a 2D project open in Yop2D Next.
Step 1: the button
- Tap Object → Interactive → Button with text.
- Name it secouer and type Shake in its Text line.
Step 2: the nodes
- Open the Blueprint.
- On Object Click: Object secouer → Camera shake: Duration (milliseconds, 1000 = 1 s) 500
The nodes
On Object Clicksecouer
→
Camera shake500
Try it
Tap Play, then Shake: the screen shakes.
👉 In a real game: put it after If object touches Tag (the hero is hit) or after an explosion. More Strength = stronger.