(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.
Create a wild winning celebration using some of these ideas.
Make your game more challenging by creating moving platforms.
Create a shrinking platform to increase your game's difficulty.
Create a way for the player to lose in your game.
Add some background music to your game.
Fix the bug that allows things other than a sprite's feet to keep it on a platform.
Sign in to save your project and track your progress.