timer status

How could i know the status of the timer if its still running or not?
thanks in advance

+1

Not sure if there is a built in function for that, but you can just turn a flag on and off.

1
2
3
4
5
6
7
8
9
local timerOn = 0
 
--turning the timer on
timer1 = timer.performWithDelay( blah blah )
timerOn = 1
 
--turning the timer off
timer.cancel(timer1)
timerOn = 0
views:1573 update:2011/12/1 20:56:45
corona forums © 2003-2011