you can do it like this
[lua] local timechange = 200
timeTaken = timer.performWithDelay( timechange, tickerFunction, 10000 )
–to reset the timer
timechange = timechange + 100
timer.cancel(timeHandle)
timeHandle = timer.performWithDelay( timechange, tickerFunction, 10000 ) [/lua]
if you want to keep track of the number of time the timer is ticked you can declare the value in a variable and can decrement it on each tick…and start from there when u reset the timer
like this
[lua] local totalSteps = 10000
local ticked = 0
local function tickerFunction()
– timer tick function
ticked = ticked + 1
end
local timechange = 200
timeTaken = timer.performWithDelay( timechange, tickerFunction, totalSteps )
–to reset the timer
timechange = timechange + 100
timer.cancel(timeHandle)
timeHandle = timer.performWithDelay( timechange, tickerFunction, totalSteps - ticked ) [/lua] [import]uid: 71210 topic_id: 12400 reply_id: 45356[/import]