Skip to content
5. Keeping Score
  • 1. Launcher Games and Randomness
  • 2. Launch a Sprite
  • 3. Turn the Sprite Left and Right
  • 4. Spawning Enemies
  • 5. Keeping Score
  • 6. Add-Ons
  • 7. Reflection
  • 8. Wrap-up: Launcher Game
  • 9. Wrap-up: Share Your Project
  • 10. Wrap-up: Show Your Project
arrow_backward Back Next arrow_forward
Instructions
  1. Create a "score" variable for the player sprite.
  2. Use an if statement to add to the "score" variable.
  3. Add a "when green flag clicked" block and a forever loop to make the condition always happen after the flag is clicked.
  4. Add a "set score to 0" block to fix the bug that keeps the score from resetting.
  5. Make the new sprite bounce around the stage.