In this add-on, you'll program a sound to playif 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)
Next, click the sound menu.
Scratch has play sound blockand a play sound until dead block.
The play sound block plays a sound and moves to thenext instruction immediately, whereas the play sound untildone block plays the sound, then waits untilthe 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 soundyou chose from the library.
To play this sound when the player touches the finish line,add the play sound block to the touchingfinishing line block stack.
Try it out.
Great, the player touches the finish lineand 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 spritetouches 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.
Program the finish line to get smaller as the player scores more points.
Create a sprite that, when touched, gives the player extra points.