Click Events on Sprites
The “When this sprite clicked” hat block turns any sprite into a button.
Building a Button
- Add a button-shaped sprite (or draw one).
- Stack: When this sprite clicked → say “You pressed me!” for 2 seconds.
- Optionally: When this sprite clicked → change color effect by (25) — the button flashes when pressed.
Practical Use
Use clickable sprites for: game start buttons, answer choices in a quiz, characters the player interacts with.