Skip to content
Transcript

In this add-on, you'll program the sprite to 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 imagination and the skills you've learned in this club to 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 block with the number in the repeat block.

The result has to be 360 for the sprite to turn all the way around.

This example uses 36 in the repeat block and 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 celebration in the then section of the if else block.

That way your sprite will celebrate only if your friend guesses the lie.

Now, it's your turn.

To program a celebration, you can use the repeat loop and the term block to make the sprite spin, use the repeat loop and the change color effect by block to make the sprite flash different colors or choose your own blocks to create a special celebration for your friend.

Place the celebration in the then section of the if else block.

Choose an Add-On

Title Page
Winning Condition!
Losing Condition!
Personalize Your Sprite
Add Another Question (Challenge)

Instructions

  1. Choose an Add-On, and click "watch" to learn how to build it.
  2. Once you finish one Add-On, try another one below the video!