Jump to content

read pivot data


Recommended Posts


i load my asset with atlasJSONHash

this.load.atlasJSONHash('MyAsset', 'assets/images/MyAsset.png', 'assets/images/MyAsset.json');

and my jsondata is:

{"frames": {

	"frame": {"x":1491,"y":1975,"w":740,"h":47},
	"rotated": true,
	"trimmed": false,
	"spriteSourceSize": {"x":0,"y":0,"w":740,"h":47},
	"sourceSize": {"w":740,"h":47},
	"pivot": {"x":0.2,"y":0.3}

When I add my spritesheet "MyAsset" on the phaser.game this is not correctly positioned with the pivot data.
Can help me?
Link to comment
Share on other sites


  • Recently Browsing   0 members

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