User Guide
Table Of Contents
90
3. To create a new message: in the Message name
box, type a unique name for the message, and then
click OK.
To receive a specific message when it occurs:
1. In the Blocks Palette, drag a when I receive block
into free space in the Scripts Area.
2. Click the down arrow, and then click the message.
3. Snap blocks onto the bottom of the when I receive
block. When the message is received, Scratch runs
these blocks.
4.8 Sound and Music
There are two ways to add sound effects and music to your
project: import .wav and MP3 files into Scratch, or create music
by playing notes.
Sound files are attached to individual sprites, and only the sprite
that the sound is attached to can play it. To import a sound file:
• In the Scripts Area, click Sounds, and then click
Import.
There are five blocks in the Sound section of the Blocks Palette
for working with imported sound files:
Block Description
play sound ? Starts playing the specified sound.
play sound ? until
done
Plays the specified sound and until the end.
stop all sounds Stops all sounds that a sprite is playing.
change volume by ? Increases or decreases how loud a sound plays.
set volume to ? % Sets how loud the sound plays, as a percentage of
how loud that sound is when imported.