This might sound confusing but I will do my best to explain.
So, I have this timer:
local timeLimit = 5 timeLeft = display.newText(timeLimit, 0,0, "Roboto-Light", 52) timeLeft.x = \_W/2 timeLeft.y = \_H/2 - 170 timeLeft.alpha = 0 timeLeft:setFillColor(0,0,0) function resetTimer() timer.cancel(tm) resartTm = timer.performWithDelay(1000, startTimer, 1) timeLimit = 6 end local function timerDown() timeLimit = timeLimit-1 timeLeft.text = timeLimit if(timeLimit==0)then resetTimer() end end
This works fine, but instead of the number representation, I prefer a bar that decreases instead. Rather than setting everything up from scratch is it possible to use that timer setting > hide it out > and link a newRect graphic to it instead?
