hello so im making a game and when i press the playBtn is stays on the next scene idk whats wrong?!
local playBtn = display.newImageRect( “playBtn.png”, 264, 163 )
playBtn.x = display.contentWidth * 0.5
playBtn.y = 750
function touchPLayBtn(event)
if event.phase == “ended” then
composer.gotoScene(“startgame”, {effect = “fade”, time=700})
return true
end
end
playBtn:addEventListener(“touch”, touchPLayBtn)
thanks