Page 73 - Computer - 4
P. 73
Control Blocks
The Control blocks, colour-coded orange, are used to control the scripts.
Block Function
Waits for a specified number of seconds before moving to the next block.
Repeats the enclosed stack of blocks for a specified number of times.
Repeats the enclosed stack of blocks until the script is stopped.
Executes the enclosed stack of blocks if the specified condition is True.
Executes the enclosed stack of blocks if the specified condition is True
else executes the other stack of blocks.
Events Blocks
The Events blocks, colour-coded yellow, are used to sense events, which cause scripts
to execute.
Block Function
Executes the script when the Go button is clicked.
Executes the script when the specified key is pressed.
Executes the script when the associated sprite is clicked on Stage.
Try This Logical Thinking
Match the block to its correct function.
Block Function
• • Executes the script when the specified key is pressed
• • Waits for a specified seconds before moving to the next block
• • Turns the sprite ‘n’ degrees clockwise
• • Displays a speech bubble above the sprite for a specified time
• • Turns the sprite by ‘n’ degrees anticlockwise
71