Ive added a restart button in my game go to back to the “game” story board so the game can be played again, but nothing happens when I click the button. My “Start” button works and I’ve used pretty much the same code to go to the scene but its not working. Any suggestions?
[lua]function restartGame(event)
if event.phase == “ended” then
storyboard.gotoScene(“game”)
end
end
restart = display.newImageRect(“restart.png”,400,200)
restart.x = display.contentCenterX
restart.y = display.contentCenterY + 300
restart:addEventListener(“touch”,restartGame)[/lua]