i was just playing around with corona trying to get a timer going but it seems i cant. I’m a complete corona noob so please explain why im getting an error here:
[lua] local tmr = 0
local tmrtext = display.newText(tmr,display.contentWidth*0.5, display.contentHeight*0.5, native.systemFont, 100 )
local function AddToTime(tmr)
tmr = tmr +1
tmrtext = tmr
end
local timeadd = timer.performWithDelay(1000, AddToTime,-1)
[/lua]