COMPUTER06L31: Scratch Blocks

Опубликовано: 05 Октябрь 2024
на канале: Academ-e
118
2

OBJECTIVES
❖ Define what a Scratch block is
❖ List and describe the six block types
❖ List and describe the block categories

LESSON PREREQUISITE
None

LESSON PROPER
Scratch Blocks

Scratch blocks are color-coded blocks that can be connected to each other, similar to a puzzle, to create a script. There are six block types, and these are as follows.

Hat Blocks
Hat blocks are used to start scripts. These blocks are shaped like a hat, with a rounded top and a bump on the bottom.

Example:

Stack Blocks
Stack blocks are the most common type of blocks in Scratch. They are used to perform the main tasks in a script. These blocks allow connection for top and bottom because they have a notch on the top and a bump on the bottom.

Example:

Reporter Blocks
Reporter blocks are used to report numbers, letters/words, or true/false values in a script. These blocks are rounded at both ends, with no notch and bump. Unlike other blocks, Reporter blocks cannot connect to other blocks, but fit in blocks that need an input value.

Example:
Boolean Blocks

Boolean Blocks

Boolean blocks are used to pass true or false values to a script. They
are shaped like an elongated hexagon, with no notch and bump. Like
Reporter blocks, Boolean blocks cannot connect to other blocks, but
fit in blocks that need conditional values.

Example:
C Blocks
C blocks are used to perform conditions and loops in a script. They are
shaped like a “C,” with the space in the middle considered as the mouth
of the block where additional blocks can be placed. All C blocks, except
for the forever block, have a notch at the top and a bump at the bottom.

Example:

Cap Blocks
Cap blocks are used to stop a script from running. They have a notch at
the top, but with no bump at the bottom.

Example:

Block Categories

Motion Blocks
Motion blocks are used to control sprite’s movements. These
blocks are medium blue in color.

Looks Blocks
Looks blocks are used to control the look of sprites and
backdrops. These blocks are purple in color.

Sound Blocks
Sound blocks are used to control the sound for your sprites
and backdrops. These blocks are pink/magenta in color.

Events Blocks
Events blocks are used to control the start of scripts. These
blocks are yellow in color.

Control Blocks
Control blocks are used to control the execution of scripts. These
blocks are gold in color.

Sensing Blocks
Sensing blocks are used to detect specific circumstances in a script. These blocks are light blue in color.

Operators Blocks
Operator blocks are used to add math equations and string
handling to a script. These blocks are light green in color.

Variables Blocks
Variables blocks are used to store value in a variable that is
created. These blocks are orange in color.

My Blocks
My blocks are used to create custom blocks. These blocks are pink in
color.