Skip to content

Please update your browser

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

Please note: This theme has not been updated to reflect Scratch 3.0. Visit this help article for more info.

5. Keeping Score

arrow_backward Back
Next arrow_forward
  1. Create a variable called "score."
  2. Add to the score when the blue star touches the the blue android using "if/then," "change score by," and "touching" blocks.
  3. Make the score go down when the blue star touches the yellow android by duplicating the previous "if" block, changing the sprite name and changing the amount in the "change score by" block.
  4. Reset the score to 0 when the green flag is clicked using a "set score to" block.