Distorted music and laggy when switching from one scene to another

Hi! I’d like to ask for help when switching between scenes, my level 2 scene becomes laggy and music has become distorted. Basically after collecting all 7 coins, my level 1 scene switches to level 2. But it just won’t seem to load properly.

Here’s a link to my project if ever: PlayCanvas | HTML5 Game Engine

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’ll leave the user manual address for your reference.

Loading Scenes | Learn PlayCanvas

1 Like