How do I remove my timer ? My time goes into other scenes . I want it to remove itself when it’s done loading or when a new scene is launched from the restart scene .
What do you mean? Just use timer.cancel(). Or do you mean the text doesn’t remove?
Yea the text doesn’t remove
So do display.remove()…
just put that or put display.remove(timer) ?
Well can you post the code on how you created the timer text.?
local timeLimit = 6 timeLeft = display.newText(timeLimit, 160, 20, native.systemFontBold, 24) timeLeft:setTextColor(255,0,0) function timerDown() timeLimit = timeLimit-1 timeLeft.text = timeLimit if(timeLimit==0)then timer.cancel(timerr) storyboard.gotoScene("maxtime", "fade", 400) end end timerr = timer.performWithDelay(1000,timerDown,timeLimit)
display.remove(timeLeft) … This is the simplest stuff in Corona. Cmon.
This is the newbie section of the forums, what can you expect?
I have at least a dozen arguments in my favor. But let’s keep it professional.
I did not mean it in a rude way at all, sorry if you offended in anyway
No no. It’s cool. I didn’t mean to offend anyone either.
What do you mean? Just use timer.cancel(). Or do you mean the text doesn’t remove?
Yea the text doesn’t remove
So do display.remove()…
just put that or put display.remove(timer) ?
Well can you post the code on how you created the timer text.?
local timeLimit = 6 timeLeft = display.newText(timeLimit, 160, 20, native.systemFontBold, 24) timeLeft:setTextColor(255,0,0) function timerDown() timeLimit = timeLimit-1 timeLeft.text = timeLimit if(timeLimit==0)then timer.cancel(timerr) storyboard.gotoScene("maxtime", "fade", 400) end end timerr = timer.performWithDelay(1000,timerDown,timeLimit)
display.remove(timeLeft) … This is the simplest stuff in Corona. Cmon.
This is the newbie section of the forums, what can you expect?