Colorslide tutorial problem

Hi there,
I’m in the process of making a tower defence game but I’m still quite new. I’ve been using the Colorslide tutorial to implement a level selection GUI but I’ve run into a problem. I’ve noticed with the tutorial that if the level 1 collection is not attached to the main collection then the level does not load when the game is built, and has to be added to the main collection to run. But with my game, even when the level collection is not attached to the main collection the level still loads. It means that when I create a GUI and add it to the main collection the init function never runs. Is there any reason why this is the case?
Thanks

I believe that the levels and menu should be added as collection proxies and loaded and unloaded as needed.

The finished tutorial project can be found in this branch: https://github.com/defold/tutorial-colorslide/tree/tutorial-done

When I add the collection proxies and add the appropriate scripts in the same way as the tutorial, my problem is that these scripts don’t run, I’ve tested them with print statements, and instead my game just loads the first level without going to my new GUI instead.


With the tutorial, taking away the collection reference stops the level from loading but with my game this doesn’t work and it loads anyway.

When I do this, my loader script does not run, and the first level just opens as normal despite not being referenced in the main collection.

Have you compared your project with the finished project I shared?