In “scene1” I have this code:
composer.gotoScene( "Scenes.Places.scene2")
Error:
File: module 'scene2' not found
* scene1 exists in the same folder as scene2 (Places)
* scene2 has the (scene_template) code in it, so it should work fine.
In “scene1” I have this code:
composer.gotoScene( "Scenes.Places.scene2")
Error:
File: module 'scene2' not found
* scene1 exists in the same folder as scene2 (Places)
* scene2 has the (scene_template) code in it, so it should work fine.
is scene 2 in a folder called *Scenes\Places* i.e. is Scenes\Places\scene2.lua a valid path ?
Yes. Also, there are no typos or anything like that.
Regardless of your statement, 99.99% of the time this is a typo issue.
However, you can both verify the existence of the file and find these weird bugs by doing this to test that the file can be loaded:
At top of main.lua temporarily add this to see if you can load the scene file:
require "Scenes.Places.scene2"
One of us will find the problem quickly.
Note: There is NO LIMIT to the number of scene files in a folder. That works fine, so it has to be your code.
is scene 2 in a folder called *Scenes\Places* i.e. is Scenes\Places\scene2.lua a valid path ?
Yes. Also, there are no typos or anything like that.
Regardless of your statement, 99.99% of the time this is a typo issue.
However, you can both verify the existence of the file and find these weird bugs by doing this to test that the file can be loaded:
At top of main.lua temporarily add this to see if you can load the scene file:
require "Scenes.Places.scene2"
One of us will find the problem quickly.
Note: There is NO LIMIT to the number of scene files in a folder. That works fine, so it has to be your code.