How can i change the color of the play button (local play) when i touch it???
module(..., package.seeall) function new() local localGroup = display.newGroup() local bg = display.newImage("bg.png") local play = display.newImage("button1.png") play.x = W/2 play.y = H/2 play.scene = "levelSel" local playText = display.newText("Play", 0, 0, "Arial", 95) playText.x = play.x playText.y = play.y localGroup:insert(bg) localGroup:insert(play) function changeScene(e) if e.phase == "ended" then director:changeScene(e.target.scene) end end play:addEventListener("touch", changeScene) return localGroup end
