I have a start screen displaying a counter label and a start button.
the label should be displaying the countdown to start the game when the start button is touched and it does that, mostly… the timer display sits on 3 for a moment then speeds through 2 and 1. Anyone come across this behavior before?
3…21GO
relevant code:
[lua]local function countdownHandler()
startCount = startCount - 1
lblStartCount.text = startCount
if startCount == 0 then
scrnStartCount.x = display.contentWidth*-1
–start game timer
state = “running”
if gTimer ~= nil then
gTimer:start()
end
end
end
local function Hndlr_btnStart(event)
–start countdown timer
timer.performWithDelay(1000,countdownHandler,3)
end[/lua] [import]uid: 78339 topic_id: 14557 reply_id: 314557[/import]