Scene change not working in published build

Good evening everybody,

I’m creating a game that involves lots of scene changes. You can find the editor here: PlayCanvas | HTML5 Game Engine. When I launch it from the editor, the scene changes work as intended but when I launch it from a published build: Morbius Simulator 2 - PLAYCANVAS it freezes. The music of the second scene plays so I know it has hit the transition to the next scene but the actual visuals don’t. Could somebody tell me what I could do to fix this? Thanks!

Hi @Srikar_Bala and welcome,

Make sure that you select all scenes to be included in your build at the build dialog.

By default only the current scene is included, so scroll down and select any other scene that you wish to include.

I did that twice, but I’m still having the same problem

Which scene should be first loaded in the published game?

Launching the Menu scene in the Editor gives the following error after clicking on the Menu bottom:

launch.js:15193 TypeError: Cannot read properties of undefined (reading 'on')
    at Collider.initialize (collider.js?id=85636010&branchId=99db5824-90e8-47d8-82d3-11bbdd859dc7:6:27)
    at ScriptComponent._scriptMethod (playcanvas.dbg.js?version=1.53.4:39912:19)
    at ScriptComponent._onInitialize (playcanvas.dbg.js?version=1.53.4:39936:34)
    at ScriptComponentSystem._callComponentMethod (playcanvas.dbg.js?version=1.53.4:65863:49)
    at ScriptComponentSystem._onInitialize (playcanvas.dbg.js?version=1.53.4:65872:9)
    at ComponentSystemRegistry.fire (playcanvas.dbg.js?version=1.53.4:722:18)
    at _loaded (playcanvas.dbg.js?version=1.53.4:71481:24)
    at Application._preloadScripts (playcanvas.dbg.js?version=1.53.4:72154:5)
    at playcanvas.dbg.js?version=1.53.4:71490:15
    at SceneRegistry._loadSceneData (playcanvas.dbg.js?version=1.53.4:71412:5)

It looks like you have some issues with the project itself.

Loading First World from the Editor also gives the same error, it would be worth looking at fixing those issues first