For some reason my buttons just stopped working and I can’t figure out why. They work fine in the simulator so I’m not sure what’s up. Here’s my button code and the function that it’s sent to:
local function lev3(event) composer.gotoScene("level3") end button3 = display.newImage("playlevel3.png") button3.xScale=.3 button3.yScale=.3 button3.x = centerX button3.y = centerY sceneGroup:insert(button3) button3:addEventListener("tap",lev3)