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 Play a Sound if Caught

Choose an Add-On
play_circle_filled
Play a Sound if Caught
Add a sound to your game and program your project to play that sound.
arrow_forward
play_circle_filled
Play Your Game with a Friend
Program one sprite to be controlled by another player.
arrow_forward
play_circle_filled
Change Up the Player
Change up your player's costume whenever it touches another sprite.
arrow_forward
play_circle_filled
Speed Up the Chase
Make the game harder by making the chasers faster.
arrow_forward
play_circle_filled
High Score!
Create a new variable that stores the game's current high score.
arrow_forward
  • 1. Escape Games and Randomness
  • 2. The Chase Is On!
  • 3. Programming the Player Sprite
  • 4. Keeping Score
  • 5. Add-Ons
  • 6. Reflection
  • 7. Wrap-up: Escape Game
  • 8. Wrap-up: Share Your Project
  • 9. Wrap-up: Show Your Project
arrow_backward Back Next arrow_forward
Transcript

Games often use sound effects to increase excitement. In this screencast, you will learn how to add sound to your game that will play if the chaser catches the player. Watch this screencast to learn how to add sound, then try it on your own.

To start, click on Chaser 1, then the sounds tab. Select “choose sound from library.”

Test a few sounds by clicking on the play buttons.

Once you’ve found a sound you’d like your game to play when a chaser catches the player, select it and click “OK.”

Great! Now your project has sound, but, you still need to create the code that will tell the computer when to play it.

In a previous screencast, you programmed an if statement to sense if the chaser was touching the player. You can use this same if statement to play the sound you just picked.

Click on the scripts tab, and click on Sound.

Drag out a "play sound" block from the sound menu, and place it in your block stack before the "say" block that makes the chaser say the time left in the game.

Remember, in computer science it’s important to test your code often to make sure it’s working the way you want. Test your code now.

[screeching sound] When the chaser catches the player, the sound you chose should play.

[screeching sound] Now, it’s your turn. Be creative and have fun adding sounds to your Scratch project!

If you get stuck along the way, ask your neighbor for help or put up your sticky to get the attention of your CS First Guru.

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!