I can’t find the error
error: attempt to index global “event” (a nil value)
local W = display.contentWidth local H = display.actualContentHeight local seconds = 0 local secondsT = display.newText(seconds, W/2,0,"Arial",40 ) local function time() seconds = seconds+1 secondsT.text = seconds end local tempo = timer.performWithDelay( 1000, time,0) timer.pause( tempo ) local function tempoS (e) if event.phase == "began" then timer.resume( tempo ) end end Runtime:addEventListener( "touch", tempoS )