In this add-on,
you will add a sound that plays if the racer crashes
with an obstacle.
This video will show you which block to use
to play a sound.
Then, you'll use what you've learned so far
to figure out where to put it in your program.
Select the racer sprite.
Then open the Sounds tab.
Click the choose sound from library button.
When you find one you like, click on it.
(playful wobbling sound)
You can use any sound you like.
Then, go back to the Scripts tab
and open the Swound menu.
Drag out the play sound until done block
and check that the sound that you just added is selected
in the dropdown menu.
It's up to you to figure out where to place this block
to make the sound play if the racer touches an obstacle.
Alright, here's the game plan.
Find a sound to play if the racer crashes with an obstacle.
Then, figure out where
to add the play sound until done block
to make your program work.
Keep track of how long a racer stays alive and display the score.
Program your racer to do a cool trick at the press of a button.
Create a power up that shrinks the racer.
Add a sound that plays when the racer crashes into an obstacle.
Sign in to save your project and track your progress.