I'm making a Lua game where when the scene starts, the timer starts increasing numbers for 20 or 30 points every second. What's the code for a timer like that?
Current score count (no count at all, just text)
scoreTxt = display.newText( "Score: 0", 0, 0, "Helvetica", 40 )
scoreTxt:setReferencePoint(display.TopLeftReferencePoint)
scoreTxt.x = display.screenOriginX + 10
scoreTxt.y = display.screenOriginY + 32
so the 'score: 0's number should increase every second...