Hey! i am kinda new to corona and “lua” code and i have taken the touorails but am confused as my code got this error and idk why
of course i tried to search it up but couldent find a thing if u can plz help
yes i am a newbie
error: Bad argument #1 to ‘find’ (string expected, got nil)
code:
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) function button:tap( event ) composer.gotoScene( game , options) end button:addEventListener( "tap", object )