Skip to content

Please update your browser

Your browser version is not supported by this site. CS First may not work properly. Learn more

arrow_back Secret Votes (Challenge)

Choose an Add-On
play_circle_filled
Spinning Celebration
Program a sprite to spin and change color when a user clicks on it.
arrow_forward
play_circle_filled
Shout it Out
Program the sprites to react when a particular sprite is selected.
arrow_forward
play_circle_filled
Shrinking Sprite
Make one of the sprites shrink if the mouse touches it.
arrow_forward
play_circle_filled
Secret Votes (Challenge)
Make the vote count for each sprite secret.
arrow_forward
play_circle_filled
Pick Me (Challenge)
Make a sprite demand to be picked whenever the mouse-pointer touches it.
arrow_forward
play_circle_filled
Extra Cool Factor (Challenge)
Program sunglasses to fall from the sky onto your favorite sprite's face.
arrow_forward
  • 1. Create A Fashion Poll
  • 2. Choose Your Poll Options
  • 3. Track The Poll Votes
  • 4. Clear The Poll Counts
  • 5. Add-Ons
  • 6. Reflection
  • 7. Wrap-up: Fashion Poll
  • 8. Wrap-up: Share Your Project
  • 9. Wrap-up: Show Your Project
arrow_backward Back Next arrow_forward
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 on your own.

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.

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!