Jump to content

Issue with Preload Image in RESIZE mode


AlgoGames
 Share

Recommended Posts

If I set scale mode to RESIZE and use following code to display a loading mage, it is not always centered. I noticed it happens more frequently on desktop as opposed to mobile. Has anyone else noticed this issue?

        var loadingBar = this.add.sprite(this.world.centerX, this.world.centerY, "loading");
        loadingBar.anchor.setTo(0.5);
        this.load.setPreloadSprite(loadingBar);

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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