Page 83 - Computer Genius Class 05
P. 83
o ar e ha e learned creating shapes in scratch and a out different loc s o scratch. n
this chapter, we will learn about the more blocks of Scratch and creating games in Scratch.
Blocks Shapes in Scratch
s you must ha e o ser ed the loc s in cratch are in different shapes. They can e di ided
into six types o shapes. These are at tac oolean eporter and ap.
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 loc s in cratch. They per orm
the main commands. Stack blocks have a bowl shape cut on the
top and a ump at the ottom. This ma es it easier to stac other loc s a o e and elo 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
eporter loc s can hold alues hich consist o num ers or strings.
you as hat is it ill ans er . They ha e rounded edges.
C Blocks
As the name suggests C blocks are shaped. They are also no n
as Wrap blocks. These are loop loc s to chec i a condition is true
in the loc s ithin the loop. The loc s are present in the Control
blocks category.
CAP Blocks
The loc s that end scripts are no n as CAP blocks. They ha e a
notch at the top and a flat ottom. They are usually the last loc s in
the script. They are also present in the ontrol loc s category.
Sensing Blocks
Sensing blocks in Scratch sense the input from the keyboard or the mouse at the time of
execution o a script. ome o the sensing loc s and their unctions are gi en elo
loc prompts the user to type the input using the ey oard. t aits
for the user input. No other block runs at that time.
Advanced Blocks & Game Creation 81

