file: bad argument #1 to ‘find’ (string expected, got table)
Bad argument #1 to ‘find’ (string expected, got table)
stack traceback:
[C]: ?
[C]: in function ‘error’
?: in function ‘gotoScene’
/Users/babybeanie98/Desktop/FM2/Scene1.lua:25: in function ‘_onRelease’
?: in function ‘?’
?: in function <?:1052>
?: in function <?:218>
I can not see anything wrong with my code.
– forward declarations and other locals
local playBtn
– ‘onRelease’ event listener for playBtn
local function onPlayBtnRelease( Scene2 )
storyboard.gotoScene( Scene2 )
return true – indicates successful touch
end