Please update your browser
Your browser version is not supported by this site. CS First may not work properly.
To earn the Bust a Move Badge,
you need to add a sprite that dances and plays music
when clicked, but stops when the space bar's pressed.
When the sprite is clicked, it should play a sound
until the sound is done, and then repeat it.
The music should keep playing
until the space bar is pressed.
You will use the next costume block
to make the sprite dance.
This means you should only choose a sprite
that has multiple costumes.
You'll see a list to choose from
at the end of this screen cast.
There are two When This Sprite Clicked blocks here,
because you want the sprite to start dancing, and
playing music when it is clicked.
So, one block stack starts the dancing,
and the other starts the music.
If you put both the play music and next costume blocks
under one When This Sprite Clicked block,
the sprite will play music, then dance,
but you want the sprite to do both of them at the same time.
When the space bar is pressed,
all of the blocks or other code scripts
for this sprite should stop running.
When the sprite's talent show time is over,
it should stop doing anything at all.
You can see some of the code you need to create here,
but you have to find some of their blocks.
That's where the scavenger hunt comes in.
As long as your sprite dances and plays music when clicked,
and stops on everything when the space bar is pressed,
you will earn the Bust a Move Badge.
Remember, it's important to test your code often
while your working to make sure
it's doing exactly what you want it to.
Now it's your turn.
(upbeat guitar strumming)