I’ve been getting issues with changing scenes. After the character collects all 5 coins in the scene, it must change to another scene. But it says “Error loading scripts. Open the console for details.”
Here’s my collision code.
Here’s what the browser console says but I have no idea how to fix it
Hi @Denise_H and welcome!
I can’t see in this script what can cause the errors.
Please check the post below for an easier method to change your scene(s).
It seems like I answered your previous question, but you should use this code:
this.app.scenes.changeScene(‘Some Scene Name’);
The reason to use it is as follows.
In my experience, the loadSceneHierarchy function only retrieves the hierarchy structure of the scene.
Therefore, it needs to be used in conjunction with the loadSceneSetting function to ensure that it runs in the expected environment.
The changeScene function I mentioned earlier is recommended because it bundles this process. I’l…
Thanks! It resolved the issue!
1 Like