Playing sounds
The most basic thing we can do with sounds in Scratch is simply playing a sound. Scratch makes it nice and easy to incorporate a variety of types of sounds into any program we create. This first recipe will involve making our default sprite make a meow sound when it is clicked on.
Getting ready
To begin, create a new Scratch file. We'll be using the default cat sprite, but you can change it if you'd like. While you can add sounds into any of the previous programs we've created, we're going to keep it simple by making the sound the entire focus of this program.
How to do it...
Let's get started with the following steps:
-
From the Events blocks, drag over the block.
Note
If you change the name to the sprite, the block we just added will reflect that name change. As we've mentioned before, for more complicated programs, you'll want to make your sprite names more meaningful than the default names. This helps keep things organized.
Head over to the Sound category of blocks and drag over...