Discuss Scratch

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
MegaApuTurkUltra
Scratcher
1000+ posts

How to use a timer or keep a score for my project

The timer blocks are
(timer)
reset timer
To start the timer, use
reset timer
It 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:
  1. Go to the variables section.
  2. Create a variable called Score.
  3. Use this block.
    set [ Score] to [0 ] 
  4. That will start the score at 0.
  5. Next, use this block.
    change [ Score] by (___)
  6. 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)

jaxlax9
Scratcher
2 posts

How to use a timer or keep a score for my project

Thank you
BluMoon
New Scratcher
3 posts

How to use a timer or keep a score for my project

potato
Coder_Annika
Scratcher
1000+ posts

How to use a timer or keep a score for my project

your welcome
InternalFlame
Scratcher
45 posts

How to use a timer or keep a score for my project

jaxlax9 wrote:

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
Say you want a players score and a Cloud high score for everyone. Then do this ~

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!

Powered by DjangoBB