I am having trouble getting 2 timers to work together. They both seem to execute simultaneously. What am I doing wrong?
See the following code:
[lua]
local function listener2( event )
gameState.captureVibration = true
end
local function listener( event )
gameState.captureVibration = false
end
local function switchIt ()
timer.performWithDelay( 500, listener )
timer.performWithDelay( 2000, listener2 )
end
switchIt()
[/lua]
Thanks for the help!!