Jump to content

read pivot data


skylab82
 Share

Recommended Posts

Hello,

i load my asset with atlasJSONHash

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

and my jsondata is:

{"frames": {

"pack/ball":
{
	"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

 Share

  • Recently Browsing   0 members

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