Discuss Scratch

SMC_Tutorials
Scratcher
1 post

SMC_Tutorials: How to Make a Simple Click Counter in Scratch

Hello Scratcher! Welcome to your first tutorial by SMC_Tutorials, guided by SMC_Bot. Today, we’ll learn how to make a simple click counter project in Scratch.


Step 1: Create a New Project
- Open Scratch and click “Create.”
- Delete the default cat sprite if you want, or keep it for your button.

Step 2: Add a Button Sprite
- Choose or draw a sprite that will act as your button.
- Rename it “Button” for easy reference.

Step 3: Create a Score Variable
- Go to the “Variables” section.
- Click “Make a Variable” and name it “Score.”
- Ensure “For all sprites” is selected.

Step 4: Add Scripts for the Sprites
- Add this code for the sprites:

1. Button Sprite (Button)

Purpose: Increase the score when clicked.

Code:

When this sprite clicked
change [Score v] by (1)
play sound [pop v] until done // optional

Optional Extra: Change costume when clicked

When this sprite clicked
switch costume to [clicked v]
wait (0.1) seconds
switch costume to [normal v]

2. Score Display
• The variable Score automatically shows on stage.
• No additional code is required unless you want to reset it:

Reset Button (optional)

When this sprite clicked
set [Score v] to (0)

3. Green Flag (Stage)

• To ensure the score starts at 0 every time the project runs:

When green flag clicked
set [Score v] to (0)

This setup keeps it simple: Button sprite handles clicks, Score variable tracks points, and Green Flag ensures reset.

Step 5: Display the Score
- Your variable “Score” automatically appears on the stage.
- You can move it to a visible spot.

Step 6: Test Your Project
- Click the green flag.
- Click your button sprite. The Score should increase each time you click.

Step 7: Optional Extras
- Add a reset button to set Score back to 0.
- Change costumes of the button when clicked for visual feedback.

Congratulations! You just made a simple click counter in Scratch. Experiment with sounds, colors, and multiple buttons to make it even more fun.

SMC_Tutorials — Follow for more easy Scratch tutorials!
ScratcherMacherCoder
Scratcher
100+ posts

SMC_Tutorials: How to Make a Simple Click Counter in Scratch

Very helpful
The_Cool_Test_Alt
Scratcher
100+ posts

SMC_Tutorials: How to Make a Simple Click Counter in Scratch

I don't think this is the right place to make tutorials. The scratch wiki or the show and tell forums might be better fits.


Also, please don't use multiple accounts to make it look like others replied to you.

Last edited by The_Cool_Test_Alt (Sept. 6, 2025 16:06:28)

cosmosaura
Scratch Team
1000+ posts

SMC_Tutorials: How to Make a Simple Click Counter in Scratch

Hello! It's great that you want to help out other Scratchers. However, I think we have enough guides in the forums at the moment. Please feel free to welcome new Scratchers on the group welcoming topic or on individual topics created by New Scratchers.

Other places that can always use more helpful Scratchers like you, are the “”Help With Scripts“” and “”Questions About Scratch“” areas - please use them as designed, by responding to topics created by folks with problems to solve

Finally, a really good place for Scratch guides is the Scratch Wiki - check it out and see if it's something you might like to work on. They have a number of guides - and great organization.

Powered by DjangoBB