FANDOM


When Flag Clicked
Whenflagclicked
Category Control
Type Hat

The When Flag Clicked block is a Control Block and a Hat Block. Scripts that begin with this block will run once the project has started (projects begin once the flag has been clicked) - making it very important. The only way to script a project without this block is to use a When () Key Pressed block, but poses many difficulties.

Common UsesEdit

There is only one use for this block; starting the scripts that should be going once the project starts.
2014-1-4-11-20

An example of a "When Flag Clicked (block)" in Scratch 2.0 performing the Konami code.

It is possible to use this block to use the Green Flag as a simple button in a project, however this is not recommended.


Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.