Fairydhwen Posted July 30, 2018 Share Posted July 30, 2018 Hi, I'm just starting to look at this new version of Phaser which looks realy great (congratz!). I'was wondering if there were available events to know when all preloads on game or on a scene are loaded ? At the moment, i set a flag in the update method and then emit a signal with an event i created in my scene. But i'm pretty sure they is a more simple way ? ? regards, Fairy. Link to comment Share on other sites More sharing options...
rich Posted July 30, 2018 Share Posted July 30, 2018 One of these should help: http://labs.phaser.test/index.html?dir=loader/loader events/&q= Although another way to tell is when your create method is run. At that point everything in preload has finished. Link to comment Share on other sites More sharing options...
Fairydhwen Posted July 31, 2018 Author Share Posted July 31, 2018 8 hours ago, rich said: One of these should help: http://labs.phaser.test/index.html?dir=loader/loader events/&q= Although another way to tell is when your create method is run. At that point everything in preload has finished. Thank you Rich, indeed this.load.on('complete', () => { }); is probably what i was looking for Fairy. Link to comment Share on other sites More sharing options...
Recommended Posts