Hi there,
From my main.lua file, I’m trying to switch to another scene when a button is pushed. I’ve tried what I have posted below several times, but each time I run the code the debugger tells me the file I am relocating to cannot be found. Both the main.lua and the other file are in the same folder. What can I do to fix this problem?
Thanks!
display.setStatusBar( display.HiddenStatusBar ) local storyboard = require "storyboard" local function handleButtonEvent( event ) if ( "ended" == event.phase ) then storyboard.gotoScene( "teachCreateName.lua" ) --this file is in the same place as main.lua