BrianWong Posted March 8, 2015 Share Posted March 8, 2015 I use " game.load.atlasJSONHash('bomb','explode.png','bomb.json');" to load a image,and the content in "bomb.json ":{"filename": "bomb_1.png","frame": {"x":0,"y":0,"w":128,"h":128},"rotated": false,"trimmed": false,"spriteSourceSize": {"x":0,"y":0,"w":100,"h":100},"sourceSize": {"w":128,"h":128}}I wanna ask how to use the "spriteSourceSize" and the "sourceSize" ?I changed the value but it didn't work at all. Link to comment Share on other sites More sharing options...
rich Posted March 8, 2015 Share Posted March 8, 2015 I don't really understand the question or what you're trying to do. Why would you ever want to change the raw atlas data once it is loaded? Link to comment Share on other sites More sharing options...
Codenburger Posted March 8, 2015 Share Posted March 8, 2015 If I'm not mistaken, sour size is the actual size of the sprites sheet and sprite source size is the size of each individual frame. Link to comment Share on other sites More sharing options...
Recommended Posts