Please update your browser
Your browser version is not supported by this site. CS First may not work properly.
(Instructor) In this video you'll program music
in the background to set the mood
and make the game more entertaining.
To start, click the stage.
To choose a music loop for your game
click the sound tab, add sound from library,
test sounds so you can find the sound
that works best for your program.
(electronic sounds play)
Program the sound to play by clicking the sounds tab.
Add a play sound until done block.
Program the music to play continuously once the game starts
with one flag clicked and forever blocks.
This now reads, when the flag is clicked,
play the whole sound until it's done then repeat forever.
Click the flag to test.
Great, the music loop plays in the background.
Now it's your turn.
Choose a music loop for your game
and make the sound play forever
using forever, play sound until done,
and when flag clicked blocks.
Experiment with different sounds and add more block stacks
to play different sounds at the same time.