So in my game that I am making, I have a timer set for 60 seconds which is the time given to complete the game. When the 60 seconds are over, the timer doesn't stop and continues to go on and on. How do I stop it from going on and on? I don't want to reset it, I know how to do that, but is it possible to stop the timer?
Offline
No. But what you can do is instead of having
if <<timer>=[60]> stuff endYou could have
if <(timer) > (60)> stuff end
Last edited by TorbyFork234 (2012-06-12 21:21:45)
Offline
Another way to do it would be to have a variable constantly set like this:
set [time v] to (round ((60)-(timer))) if <(time) = (0)> stop script end
Offline
TorbyFork234 wrote:
No. But what you can do is instead of having
if <<timer>=[60]> stuff endYou could haveif <(timer) > (59)> stuff end
I changed it to 59 seconds because it would stop at 61.
Offline
Firedrake969 wrote:
TorbyFork234 wrote:
No. But what you can do is instead of having
if <<timer>=[60]> stuff endYou could haveif <(timer) > (59)> stuff endI changed it to 59 seconds because it would stop at 61.
No, now it will stop at 59.1 seconds. Remember, the (timer) reports a decimal.
Offline
The timer in scratch is really inaccurate
Offline