Hi guys,
It seems that the new function “timer.resume” does not work.
Look at the code below, where I went wrong?
Regards
Marco
[code]
local result
local timer1
local btResume = display.newImage( “btResume.png” ,0,50)
local btPause = display.newImage( “btPause.png” ,0,0)
function TEST( event )
local count = event.count
print(count … " time(s)" )
end
function START()
timer1 = timer.performWithDelay(1000, TEST, 50)
end
function PAUSE()
result = timer.pause(timer1)
print( "Time remaining is " … result )
end
function RESUME()
result = timer.resume(timer1)
print( "Fire time is " … result )
end
btResume:addEventListener(“tap”,RESUME)
btPause:addEventListener(“tap”,PAUSE)
START()
[/code] [import]uid: 7518 topic_id: 14045 reply_id: 314045[/import]