Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to use a timer or keep a score for my project
- jaxlax9
-
Scratcher
2 posts
How to use a timer or keep a score for my project
Hey Scratch Friends,
I don't know how to make a timer or keep a score for my project.. Can you give me some general knowledge on how to do this!?
Thank you!
Jaxlax9
I don't know how to make a timer or keep a score for my project.. Can you give me some general knowledge on how to do this!?
Thank you!
Jaxlax9
- MegaApuTurkUltra
-
Scratcher
1000+ posts
How to use a timer or keep a score for my project
The timer blocks are
More info: Timer
(timer)To start the timer, use
reset timer
reset timerIt starts the timer from zero, and the timer will begin counting up in seconds. To see the timer value, use
(timer)
More info: Timer
- Coder_Annika
-
Scratcher
1000+ posts
How to use a timer or keep a score for my project
Here is how to keep score:
- Go to the variables section.
- Create a variable called Score.
- Use this block.
set [ Score] to [0 ]
- That will start the score at 0.
- Next, use this block.
change [ Score] by (___)
- That changes the score by ___ when something happens that is in your code.
Hope that helped!!!
~Coder_Annika
Last edited by Coder_Annika (Feb. 14, 2016 19:09:41)
- InternalFlame
-
Scratcher
45 posts
How to use a timer or keep a score for my project
Hey Scratch Friends,Say you want a players score and a Cloud high score for everyone. Then do this ~
I don't know how to make a timer or keep a score for my project.. Can you give me some general knowledge on how to do this!?
Thank you!
Jaxlax9
when green flag clicked
set [Player's Score v] to [0]
forever
if (Something that is supposed to change the score, happens ) then
change [Player's Score v] by (1)
if <(Player's Score) > (Cloud High Score)> then
set [Cloud High Score v] to (Player's Score)
end
end
end
This is really basic, and it can be modified. But I hope this helps!

- Discussion Forums
- » Help with Scripts
-
» How to use a timer or keep a score for my project
