Hello guys, I have a problem developing my game.
I put a pause button , for pause physics and every events, I can make the timer pause, but, when I touch the pause button again, the time does not start , I cant make it work well
here is may code:
local onPauseTouch = function( event )
timer.pause(gametmr)
physics.pause()
pauseBtn.isVisible = false
pausBt.isVisible = true
end
pauseBtn:addEventListener(“touch”, onPauseTouch)
function star(event)
physics.start(true)
pauseBtn.isVisible = true
pausBt.isVisible = false
end
pausBt:addEventListener(“touch”, star)
Please help me with this.
Thanks.