Function doCountdown()
local currentTime = countDownText.text
currentTime = currentTime -1
countDownText.text = currentTime
if(currentTime == 0) then
display.remove(allBallsGroup)
countDownText.text = gameTime
startTimer()
generateBalls()
end
end
The situation here is the Timer has 15 sec, so if it hit to 0 all the group of objects will be removed display.remove(allBallsGroup) and will replace by the new group objects which means generateBalls()? How can i do this in the same time?