Jump to content

tileSprite anchor behaving differently in Canvas vs. WebGL


Boxtufty
 Share

Recommended Posts

Relevant snippet:

this.tileCurrent = this.game.add.tileSprite(this.game.world.width/2, this.game.world.height/2, 320, 640, 'grasstile');this.tileCurrent.anchor.setTo(0.5,0.5);

When using Canvas, the anchor point is in the top left corner of my tileSprite. 

 

When using webGL, the anchor is in the centre of my tileSprite. This is the desired outcome, how can I achieve this in both Canvas and webGL?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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