Skip to content

Please update your browser

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

Transcript

This video introduces adding sound to your project.

It won't tell you exactly where to put the blocks however, so use your courage and persistence.

If you need help, ask a neighbor.

To program your project to play a sound, you will first need to add that sound to your project.

To do that, click on the sounds tab and choose sound from library.

(person beatboxing)

(upbeat music)

When you find a sound that you like, click on the sound.

Click back on the tab to go back to programming.

Click on the sounds tab.

There you will find the play sound and play sound until done blocks.

The play sound block starts playing the sound, then immediately runs the code after it.

The play sound until done block waits until the sound finishes playing before continuing on to the next block.

To make the sound play continuously inside a loop, use the play sound until done block.

Play sounds when players catch objects, when objects appear, or constantly during the game.

You can even add different sounds for different objects.

The cool thing about computer science is that you have the power to create anything in your program.

Now it's your turn.

Add sound effects to your projects using the play sound or play sound until done blocks.

Choose an Add-On
It's How You Play the Game
Add a winning condition to your game.
Danger Sprite
Add a sprite that causes you to lose points if you or your friend touches it.
Designer
Learn how to design the sprites.
Make Noise
Add sound to your project.
Hello Friend
Make the sprites react when they touch each other.
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!