In this add-on, you'll program the spriteto celebrate when your friend correctly guesses your lie.
First, program the celebration.
There's lots of different ways to celebrate.
This video will show you two ideas;spinning and changing colors.
But you can use your imaginationand the skills you've learned in this clubto come up with your own.
To face the sprite right-side up after spinning,make it turn a complete circle or 360 degrees.
Multiply the number in the term blockwith the number in the repeat block.
The result has to be 360 for the spriteto turn all the way around.
This example uses 36 in the repeat blockand 10 in the turn block.
36 times 10 equals 360.
To make the sprite face upright again while you're testing,click the point in direction block in the motion menu.
To make the sprite change colors,use the change color effect block from the looks menu.
Click on the block to see what it does.
The sprite changes color.
To clear that change,click on the clear graphic effects block in the looks menu.
To make the sprite repeat changing color,place that block inside the repeat loop.
Place the code you built for your celebrationin the then section of the if else block.
That way your sprite will celebrate onlyif your friend guesses the lie.
Now, it's your turn.
To program a celebration, you can use the repeat loopand the term block to make the sprite spin,use the repeat loop and the change color effect by blockto make the sprite flash different colorsor choose your own blocks to createa special celebration for your friend.
Place the celebration in the then sectionof the if else block.