I’m currently using the default loading screen as shown in the docs. It’s working fine, however I’d like to be able hide the loading screen after a custom event is fired. My app sends out a couple of async requests after the engine wide ‘start’ event is fired and I’d like to keep the loading screen visible until all these requests have completed.
In the loading screen script, I’ve tried replacing the default
app.start listener with a function that does nothing and then adding a listener for my own custom event like so:
app.on('start', doNothing); app.on('customEvent', hideScreen);
However, the loading screen is still hidden as soon as the engine wide start event fires and it seems like the removal of the loading screen is handled elsewhere by the engine.
My backup plan is to implement a ‘secondary’ loading screen hud element that’s immediately visible after app start, however it’d be much easier if we could keep the original loading screen visible for just a tiny bit longer.