Skip to content
Transcript

In this add-on, you'll make the vote count for each sprite secret by hiding the variables.

This add-on will help you plan how to code your vote counter, but it's up to you to use your computer science skills to complete this add-on.

To get started, click any of the sprites.

It doesn't matter which one.

Next, select the data menu and drag out the hide variable block.

Add a hide variable block for each of the sprites.

Finally, add an event to hide the variables.

This example uses the space key.

For an extra challenge, figure out how you can make the hidden variables show by adding another keypress event.

Choose an Add-On

Spinning Celebration

Program a sprite to spin and change color when a user clicks on it.

Shout it Out

Program the sprites to react when a particular sprite is selected.

Shrinking Sprite

Make one of the sprites shrink if the mouse touches it.

Secret Votes (Challenge)

Make the vote count for each sprite secret.

Pick Me (Challenge)

Make a sprite demand to be picked whenever the mouse-pointer touches it.

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!
Attributions
  • "Fashion Poll Starter Project remix" by csf18509 (https://scratch.mit.edu/projects/38969490/) -- Licensed by CC BY-SA 2.0 (https://creativecommons.org/licenses/by-sa/2.0/)
  • "Totoro Madness!" by csf7857 (https://scratch.mit.edu/projects/52952680/#editor) -- Licensed by CC BY-SA 2.0 (https://creativecommons.org/licenses/by-sa/2.0/)
  • "Fashion Poll Starter Project remix-2" by csf18507 -- Licensed by CC BY-SA 2.0 (https://creativecommons.org/licenses/by-sa/2.0/)
  • "Fashion Poll Starter Project remix" by csf17204 (https://scratch.mit.edu/projects/38969490/) -- Licensed by CC BY-SA 2.0 (https://creativecommons.org/licenses/by-sa/2.0/)