hey i want to make my button if pressed go to next scene but this error poped up any body know how to fix this
local options = { effect = "fade", time = 800, } local button = display.newImage ("play\_button.png") button.x = 160 button.y = 330 button:scale( 5.0, 5.0) local function nextscene (event) local touchedObject = event.target if event.phase then = "began" then touchedObject.gotoScene( "results", options ) end end button:addEventListener("touch", nextscene)
Unexpected symbol near ‘=’
File: main.lua
Line: 30