Events Blocks – List
Block |
Description |
Scripts that wear this block will activate once the Green Flag has been clicked | |
Scripts placed under this block will activate when the specified key is pressed.
The keys that can be sensed with this block involve the entire English alphabet (a b c etc.), the number keys ( 0 1 2 etc.), the arrow keys ( ← ↑ → ↓ ), and the space key. After an update, this block now includes an any option, which allows one to press any key to operate the block. |
|
Scripts that wear the block will activate once when its sprite Contrary to its definite name, the block will also execute the clone’s script when the clone is clicked on | |
Scripts that wear this block will be triggered once the specified backdrop has been switched to on the | |
It starts the script below it when a value (chosen by the drop-down menu) is greater than another value (entered by the number input). Its options are loudness, Video motion also used to be an option, but was replaced by the When video motion > ().
This block will only re-run after its condition first stops being met, and then begins being met again. If the script is running when the condition stops and the starts being met, this will be ignored and the script will not be restarted. |
|
The block activates its script when the specified broadcast has been sent by a calling script | |
which sends a broadcast throughout the whole Any scripts in any sprites that are hatted with the when I receive () block that is set to a specified broadcast will activate. This broadcast block lets scripts send broadcasts without any waits in its script (unlike the Broadcast () and Wait block). Broadcasts are a good way to have sprites and scripts communicate. | |
The block sends a broadcast throughout the whole Scratch Any scripts that start with the When I Receive () block and are set to the matching broadcast will activate. This broadcast waits until all scripts activated by the broadcast end and stop running. Broadcasts are a good way to have sprites and scripts communicate. |