Jump to content

Game and Scenes Event


Fairydhwen
 Share

Recommended Posts

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

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

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...