Page 83 - CG_v2.1_flipBooks_class_5
P. 83
So far, we have learned creating shapes in scratch and about different blocks of scratch. In
this chapter, we will learn about the more blocks of Scratch and creating games in Scratch.
Blocks Shapes in Scratch
As you must have observed, the blocks in Scratch are in different shapes. They can be divided
into six types of shapes. These are: Hat, Stack, Boolean, Reporter, C and Cap.
Hat Blocks
They are called hat blocks as they look like a hat. We wear a hat on our
head, so the hat always comes on the top. Similarly, hat blocks always
come at the top of a script as they start a script. This means that you
cannot place any blocks above them.
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.
Advanced Blocks & Game Creation 81

