Reference Guide: 3. Scratch Blocks
Reference Guide: 3. Scratch Blocks
3. SCRATCH BlOCkS
TyPES OF BlOCkS
There are three main types of blocks in the Blocks Palette:
Stack Blocks: These blocks have bumps on the bottom and/or notches on the top, such
as . You can snap these blocks together into stacks. Some stack blocks have an input
area inside them, where you can type a number (such as 10 in the block) or
choose an item from a pull-down menu (such as pop in the block). Some
stack blocks, such as , have a C-shaped “mouth” where you can insert other
stack blocks.
Hats: These blocks have rounded tops, such as . These blocks are placed
at the tops of stacks. They wait for an event to happen, such as a key being pressed, then
run the blocks underneath them.
Some reporter blocks have a check box next to them, such as . If you click in the check
box, a monitor appears on the stage, displaying the current value of the reporter. As the value
of the reporter changes, the monitor updates automatically. A monitor can display the value of
the reporter in several different formats:
The slider format is available only for user-created variables. Right-click on the monitor in slider
format to adjust its minimum and maximum values.
Sound
Starts playing a sound, selected from pull-down menu,
and immediately goes on to the next block even as
sound is still playing.
Plays a sound and waits until the sound is finished
playing before continuing with next block.
Control
Runs script below when green flag is clicked.
Variables
Allows you to create and name a new variable. When you
create a variable, three blocks are created automatically (see below). you
can choose whether the variable is for all sprites (global) or just for one
sprite (local).