Please update your browser
Your browser version is not supported by this site. CS First may not work properly.
In this add-on, you will program the sprite to celebrate your cause by dancing.
A lot of viral videos include dancing.
Gangnam Style, the Hamster Dance, and What Does the Fox Say? are a few examples.
This video will give you some ideas for how to program your dance celebration.
To start, pick the sprite that will start the celebration.
Choose a sprite that is already in your project, or add a new sprite.
If you add a new sprite, add a "when this sprite clicked" event with a "broadcast" block
Click the dropdown menu, select "new message," and call the message something like, "Celebrate."
Add a "when I receive" block, and choose the message you just created from the dropdown menu.
Under this, add blocks to make the sprite dance.
You might use "next costume," "change costume," "glide," and "wait" blocks.
Experiment with using different blocks and entering different numbers in the “glide”
and “wait” blocks.
To make the other sprites dance, add "when I receive" blocks to their scripting areas,
and add code to make them dance.
You don’t have to use the same dance blocks for every sprite.
Try out different things until you get an effect you like.
Now it's your turn!
Program a sprite to broadcast a message to dance, and code the the sprites to dance when
they receive this message.