when green flag clicked — Scratch Block Guide
Main entry-point hat block that starts scripts whenever the player clicks the green flag.
What this block does
Main entry-point hat block that starts scripts whenever the player clicks the green flag.
Initialize positions, costumes, variables, and start main game loops.
- Category: Events Blocks
- Key tip: Keep initialization in one clear green-flag script to avoid race conditions.
Working Scratch example
Try building this small script in the Scratch editor, predict what will happen, then click the green flag to test it.
- When green flag clicked
- Go to x: 0 y: 0
- Show
Try it: Resets the sprite cleanly every time the project starts.
Related block guides
Explore other blocks in the same category or return to the full English Block Dictionary.
FAQ
When should I use "when green flag clicked" in Scratch?
Initialize positions, costumes, variables, and start main game loops. Keep initialization in one clear green-flag script to avoid race conditions.
This guide is provided for educational purposes. Scratch screens and terms may change over time, so please check the official Scratch website as well.