← Back to Tutorials

Make Your First Clicker Game

Learn how to use variables, sprites, and events to keep score!

Step 1

Choose Your Clicker Sprite

Delete the default Scratch Cat sprite. Click on the Choose a Sprite button in the bottom right corner and pick an item your players will click on (like a Balloon, an Apple, or a Donut).

Step 2

Create a "Score" Variable

We need a way to remember how many times the player has clicked our sprite. Go to the orange Variables category block section on the left toolbar:

  • Click the Make a Variable button.
  • Name your new variable Score.
  • Make sure "For all sprites" is selected and click OK.
Step 3

Add the Clicking Logic

Select your sprite and drag the following blocks into your workspace area to increase the score every time the item is clicked.

when this sprite clicked
change [Score] by (Score Per Click)
start sound [Pop]
Step 4

Reset Score on Restart

To make it a true game, the score needs to reset back to zero when the green flag is clicked to start over.

when green flag clicked
set [Score] to (0)
set [Score Per Click] to (1)