Page 104 - 2422_C5_Flipbook
P. 104
Stack Blocks
Stack blocks are the most used blocks in Scratch. They
perform the main commands. Stack blocks have a bowl
shape cut on the top and a bump at the bottom. This makes it easier to stack other blocks
above and below them.
Boolean Blocks
Boolean blocks are condition blocks which return the values “true” or “false”
or the number “0” or “1” depending on how they are used in the script.
Reporter Blocks
Reporter blocks can hold values, which consist of numbers or strings. If you
ask, “What is 3 + 3 ?”, it will answer “6”. They have rounded edges.
C Blocks
As the name suggests C blocks are C shaped. They are also known as
Wrap blocks. These are loop blocks to check if a condition is true in the
blocks within the loop. The C blocks are present in the Control blocks
category.
Cap Blocks
The blocks that end scripts are known as Cap blocks. They have a notch
at the top and a flat bottom. They are usually the last blocks in the script.
They are also present in the Control blocks category.
SENSING BLOCKS
Sensing blocks in Scratch sense the input from the keyboard or the mouse at the time of
execution of a script. Some of the sensing blocks and their functions are given below:
block prompts the user to type the input using the keyboard. It waits
for the user input. No other block runs at that time.
block checks if the sprite touches the mouse-pointer, another sprite or
the edge. If the answer is true, then it executes the blocks given after it in the condition. If
false, then it executes other blocks as per the given condition.
block checks if the sprite is touching the colour chosen in the block. If true,
then it executes a set of blocks, else executes another set of blocks.
block checks if the first chosen colour is touching the second chosen
colour. If true, then it executes a set of blocks, else executes another set of blocks.
102 Premium Edition-V

