Hi, I’ve been messing around with this for nearly an hour now, but I just can’t seem to accomplish this; Navigating to a .lua file that is in a folder.
In the Simulator I’m able to use the code below and everything is fine, but when I build my app and port it to a phone, I get this error:
“Director ERROR: Failed to load module ‘folder/file’ - Please check if the file exists and it is correct”.
I know something isn’t wrong with the file because I have gotten it to load when it is not in a folder. Is my syntax wrong?
Help is appreciated.
[code]
local function goEvent (event)
if event.phase == “ended” then
director:changeScene (“folder/file”, “moveFromRight”)
end
end
–
------------------------------------------------------------------ [import]uid: 66317 topic_id: 15484 reply_id: 315484[/import]