Page 70 - modular4.0
P. 70
Chapter Profile
Reporter Blocks
3 3
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. 6
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.
Suppose, you have to code a dance party in Scratch where characters keep
dancing in a loop until stopped? Which block will you use for this and which
songs would you play in the program?
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.
The 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.
block checks if the chosen key is pressed by the user. If true,
then it executes a set of blocks, else executes another set of blocks.
68 Modular (Ver. 4.0)-V

