You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Atlas/Sprite sheet creation tools like TexturePacker offer the ability to set anchor/pivot points on images. NinePatch currently doesn't take these into account.
In this screenshot I have loaded an image from my atlas, once using this.add.image and once using this.add.ninePatch, both defining the same x and y position:
In TexturePacker, the pivot point is set to 0, 0 (top left) which the default phaser image add is respecting but not in NinePatch.
Atlas/Sprite sheet creation tools like TexturePacker offer the ability to set anchor/pivot points on images. NinePatch currently doesn't take these into account.
In this screenshot I have loaded an image from my atlas, once using
this.add.image
and once usingthis.add.ninePatch
, both defining the same x and y position:In TexturePacker, the pivot point is set to
0, 0
(top left) which the default phaser image add is respecting but not in NinePatch.This is the relevant json from the atlas:
Would be great to have support for this if at all possible 🙏
The text was updated successfully, but these errors were encountered: