Page 57 - TP_Modular_V2.1_Class5
P. 57
start sound Meow block plays a sound without pausing
the script. The sound options are Meow and record.
play sound Meow until done block plays the sound by pausing
the script until the sound has finished playing. The
sound options are “Meow” or any record.
To stop all sounds being played on all Sprites, use stop all sounds block.
clear sound effects block clears all existing sound effects.
Events Blocks
An event is a happening which occurs due to some other things that happened
before it. These are the most important code blocks in Scratch as a script can't run
without Event blocks. So, Events blocks actually control how the blocks in a script,
will start to run, if a particular action is done. Events blocks control events and the
starting of scripts. They are yellow in colour.
when clicked block activates the script attached to this space
block when the Green flag or Go button is clicked. up arrow
down arrow
when space key pressed block activates the script when the right arrow
chosen key is pressed. You can choose from the given keys left arrow
or you can choose the any option. any
a
when this sprite clicked block activates the script attached to
this block when you click the sprite.
Control Blocks
They are looping blocks which are used when the same blocks have to be repeated
for a number of times under certain conditions. They are orange in colour. The
most commonly used control blocks are:
The wait block pauses the running of the script for the number of
wait 1 seconds
seconds given in the block. You can use this block when two move
or speak blocks are coming one after the other.
The repeat block repeats a set of blocks for a given number of repeat 10
times. This block is also used to draw shapes where we have to
give the same blocks again and again for a number of times.
The forever block keeps on repeating a set of blocks till the stop forever
button is clicked. This block is similar to repeat block and expands
automatically to accommodate the blocks you snap inside it.
More Blocks in Scratch 55

