Skip to content

Please update your browser

Your browser version is not supported by this site. CS First may not work properly. Learn more

arrow_back Finish Line Cheer

Transcript

Adding sound to a game can make the game more fun.

In this add-on, you'll program a sound to play if the player sprite touches the finishline.

To start, click the sound tab, then the add sound from the library button.

Try a few sounds (laughter)

(rooster crowing)

(timpani)

(water gurgling)

Next, click the sound menu.

Scratch has play sound block and a play sound until dead block.

The play sound block plays a sound and moves to the next instruction immediately, whereas the play sound until done block plays the sound, then waits until the sound is done before moving to the next instruction.

Either block will work for your program.

This example will use the play sound block.

Click the dropdown menu and select the sound you chose from the library.

To play this sound when the player touches the finish line, add the play sound block to the touching finishing line block stack.

Try it out.

Great, the player touches the finish line and the sound plays.

Now it's your turn.

Add a sound to your project from the scratch sound library.

Then program a sound to play if the sprite touches the finish line using a play sound block.

Choose an Add-On
Finish Line Cheer
Program a sound to play if the player touches the finish line.
Play with a Friend Option 1
Add a second player to the game.
Play with a Friend option 2
Challenge a friend by having them control the enemies.
Shrinking Finish-Line
Program the finish line to get smaller as the player scores more points.
Bonus Points!
Create a sprite that, when touched, gives the player extra points.
arrow_backward Back
Next arrow_forward
Instructions
  1. Choose an Add-On, and click "watch" to learn how to build it.
  2. Once you finish one Add-On, try another one below the video!
Attributions
  • The song “Magic Marker” is © YouTube-- CC-BY-SA 4.0 does not apply.