How do u make the timer count down to zero?
Offline
The timer always counts up. If you want a countdown, set a variable to 10 and count it down with
repeat 10
wait 1 sec
change counter by -1
Offline
If you want to use the timer you could bodge it with something like...
Make a variable ShowTime
and use two scripts (assuming a countdown from 10):
When Sprite Clicked (or whatever trigger you are using)
Broadcast CountDown
When I Receive CountDown
Reset Timer
Set ShowTime to 10
Repeat until ShowTime=0 or ShowTime<0
Set ShowTime to 10-timer
It needed the OR as it did not always pick up the = 0
Offline
Thanks for that information! I have a 2 minute countdown timer sprite availlable for free download here
http://www.scratch.mit.edu/projects/gne/28154
which I made. Feel free to use it!
Last edited by gne (2007-08-10 09:13:31)
Offline