ID:270062
 
I need an example of how to program a timer, for example starts at 1 minute, then every second slowly reduces until 0. Like the one in Sniper Joe's Christmas game.
var/time=100
proc/timer()
time--
sleep(10)
timer()
I should of been more specific, i want it like a clock time, but I suppose I could do my timer in seconds. It would definitely be appreciated, if anyone could provide an example of how to do it accordingly to clock time.


Thanks.