Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How do I stop the timer at the end of a game?
- donoghuea
-
New Scratcher
4 posts
How do I stop the timer at the end of a game?
I have a game where the timer resets when the green flag is set…and you have 30 seconds to catch the gobo as often as possible. Only problem is, even when all the scripts stop at the end of the game the timer keeps going.
How do I stop the timer at the end of a game?
Here is the game- you can see what I mean
http://scratch.mit.edu/projects/10214707/
How do I stop the timer at the end of a game?
Here is the game- you can see what I mean

http://scratch.mit.edu/projects/10214707/
- Lone-Wolf
-
Scratcher
87 posts
How do I stop the timer at the end of a game?
Here, just edit this part of your script so it looks like this:

That should fix it.

That should fix it.
- donoghuea
-
New Scratcher
4 posts
How do I stop the timer at the end of a game?
Thanks Lone-Wolf- I tried this, and it does reset the timer, but the timer still keeps on going just from 0, even when all the other scripts stop 

- BoltBait
-
Scratcher
1000+ posts
How do I stop the timer at the end of a game?
You can not stop the timer.
The best you can do is hide the timer display.
The best you can do is hide the timer display.
Last edited by BoltBait (May 26, 2013 03:21:17)
- Lone-Wolf
-
Scratcher
87 posts
How do I stop the timer at the end of a game?
Thanks Lone-Wolf- I tried this, and it does reset the timer, but the timer still keeps on going just from 0, even when all the other scripts stop
Well, perhaps you could put the reset in a forever block. Or just, as BoltBait said, hide it. Or maybe both…

- donoghuea
-
New Scratcher
4 posts
How do I stop the timer at the end of a game?
you're a genius, Lone Wolf!
Putting the forever block around the reset worked! Looks like it goes back to 0 and then just stays there- Yay for collaboration!
Putting the forever block around the reset worked! Looks like it goes back to 0 and then just stays there- Yay for collaboration!
- turkey3
-
Scratcher
1000+ posts
How do I stop the timer at the end of a game?
Use a variable as a replacement timer.
- donoghuea
-
New Scratcher
4 posts
How do I stop the timer at the end of a game?
thanks Turkey3, I'll try this too
- DarciiL12
-
New Scratcher
3 posts
How do I stop the timer at the end of a game?
hey also having trouble!!
tried but don't understand

tried but don't understand

- DarciiL12
-
New Scratcher
3 posts
How do I stop the timer at the end of a game?
then i did it but one of my sprites disappeared
- 1234abcdcba4321
-
Scratcher
1000+ posts
How do I stop the timer at the end of a game?
explain the problem
- Ajtruckle
-
New Scratcher
1 post
How do I stop the timer at the end of a game?
i dont know how to do it i cant hide it aswell.
- RandomPerson1789
-
Scratcher
100+ posts
How do I stop the timer at the end of a game?
You start with this script:
when green flag clickedThen to stop timer do this:
reset timer
forever
set [Time v] to ((timer) - ((timer) mod (1)))
end
stop [all v]Easier version:
when green flag clicked
forever
wait (1) secs
change [Time v] by (1)
end
Last edited by RandomPerson1789 (May 17, 2014 17:57:01)
- skullboy22
-
Scratcher
99 posts
How do I stop the timer at the end of a game?
Use a variable as a replacement timer.
yea like this:
when green flag clicked
forever
wait (1) secs
change [ timer] by (1)
- Superstephen
-
Scratcher
40 posts
How do I stop the timer at the end of a game?
is there a way to just pause it so the player can see how they did?
btw if you could respond before the 24th that would be awesome
btw if you could respond before the 24th that would be awesome

- TPel
-
New Scratcher
1 post
How do I stop the timer at the end of a game?
I have a school project where we are creating a game, and I have to have a timer. I made one using a variable, but I can't stop it. HELP!!!!! Plz respond before the 19th if possible. Thanks!
- Discussion Forums
- » Help with Scripts
-
» How do I stop the timer at the end of a game?