NEW Explore the Scratch Block Dictionary, tutorials, textbook, and classroom guides

Start learning →

when green flag clicked — Scratch Block Guide

📌 What you will learn

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.

Example using when green flag clicked
  1. When green flag clicked
  2. Go to x: 0 y: 0
  3. 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.

Back to Events Blocks See the overview and patterns for Events Blocks. Learn more → Scratch Block Dictionary (All Categories) Browse Motion, Looks, Sound, Events, Control, Sensing, Operators, Variables, and Extensions. Learn more →

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.