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 animate the monkey sprite and program it to introduce the game.
To start, select the monkey sprite.
To make the monkey glide onto the stage from the left side, program it to start slightly
off the stage.
Under the "when flag clicked" event, add a "go to" block, and set the x to negative 270
and the y to negative 120.
Place the monkey on the stage where you want it to introduce the game.
Drag out a "glide" block, and place it under the "go to" block.
The x and y values in the "glide" block reflect the current location of the sprite.
Click the code to try it out.
The monkey glides onto the stage from the left side and stops in the spot you chose.
To make the monkey do a little dance, click the costumes tab, right-click the first costume,
called Monkey-a, and click "duplicate."
Click the sprite in the editor, then click the "ungroup" icon.
This will let you move different parts of the monkey individually.
To make the monkey look like it's moving its tail, click the tail, then click the bubble
above the selection box to turn it.
To make the monkey look like it's moving its arms, select the arms, and turn or move them.
You can also click and turn the monkey's legs, face, body, and ears.
Next, click the scripts tab, and add the "switch costume" block below the "glide" block.
From the dropdown menu, select the Monkey-a costume.
Add another "switch costume block," and select the costume you just created.
To make the monkey look like it's really dancing, add a repeat loop around the "switch costume"
Test the code again.
Hm, it looks like it's not doing anything.
The program is switching between the costumes so fast, you can't see the change.
To fix this, add a "wait" block after each one of the "switch costume" blocks.
Adjust the values in the "wait" blocks and the "repeat" loop until the costume change
looks right to you.
Finally, program the monkey to introduce the game.
Add a "say" block, and type in the game instructions.
This example uses three "say" blocks with the words, "Welcome to Depict & Deduce.
Play this game with a partner!
One of you will draw something and the other will guess what the drawing is."
Now it's your turn: Program the monkey to glide on stage.
Duplicate and edit the monkey's costume.
Animate the monkey using the “repeat,” “switch costume to,” and “wait” blocks.
And, program the monkey to introduce the game.