Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

setPreloadSprite not working as expected


Recommended Posts

I'm using the following code in order to have a loading bar:

// in boot.jsthis.load.image('loaderFull', 'images/full.png');this.load.image('loaderEmpty', 'images/empty.png');
// in preloader.jsthis.loaderEmpty = this.add.sprite(100, 100, 'loaderEmpty');this.loaderEmpty.name = 'loaderEmpty';this.preloadBar = this.add.sprite(100, 100, 'loaderFull');this.load.setPreloadSprite(this.preloadBar);

It works fine on version 1.1.3 (see image below)




but when I use version 2.0 It becomes weird.




Any clue?



Link to comment
Share on other sites


  • Recently Browsing   0 members

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