timer instead of pause

Code tips and tricks for beginners
Post Reply
Zim
Posts: 280
Joined: Mon Feb 08, 2021 9:15 pm
Has thanked: 251 times
Been thanked: 128 times

timer instead of pause

Post by Zim »

timer0 1000, ticker
duration=1 * 60 * 60 ' times ticker seconds = 1 hour
wait

ticker:
if duration >= 0 then
duration = duration -1
else
gosub timedout
endif
return

timedout:
wlog "timed out"
return


Thanks Electroguard
Post Reply