Control Blocks – List
Block |
Description |
It pauses its script for the specified amount of The wait can also be a decimal number. This block is one of the most commonly used blocks. It is used whenever a sprite must wait for another action. | |
Blocks held inside this block will loop a given amount of times, before allowing the script to
If a decimal is put in, the number is rounded up. Furthermore, when a negative number or a non-number is input, the loop does not run, and if “Infinity” is input, then the block runs forever. |
|
Blocks held inside this block will be in a Just like the Repeat () block and the Repeat Until ()block, except that the loop never ends (unless the stop sign is clicked, the Stop All block is activated, or the Stop Script block is activated within the loop). Due to this infinite loop, the block has no bump at the bottom; having a bump would be pointless, as the blocks below it would never be activated | |
If its Boolean condition is true, the blocks inside it will run. If the condition is false, the blocks inside the block will be ignored. The condition is only checked once; if the condition turns to false while the script inside the block is running, it will keep running until it has | |
The block checks its Boolean condition, if the condition is true, the code held inside the first C (space) will activate if the condition is false, the code inside the second C will activate | |
The block pauses its script until the specified Boolean condition is true. | |
Blocks held inside this block will loop until the specified Boolean statement is true, in which case the code beneath the block (if any) will execute. This loop is similar in nature to a while loop in some other programming | |
Depending on the option chosen in the drop- down, it is either a Cap block (“all” or “this script”), or a Stack block (“other scripts in sprite”). It is the only block that changes its shape. It was added in Scratch 0 to replace the Stop All and Stop Script blocks, and also to add the functionality of stopping other scripts in a sprite. | |
It was originally called Clone Start-up, but was likely renamed to clear up confusion on what the block Scripts attached to this block are activated by clones when the clones are created. | |
It creates a clone of the sprite in the argument. It can also clone the sprite it is running in, creating clones of clones, recursively. | |
It creates a clone of the sprite in the argument. It can also clone the sprite it is running in, creating clones of clones, recursively. |