Create a texture atlas using CLI does not seem to work correctly or I’m doing something wrong.
I have 2 .ase files (player.ase and enemy.ase) both containing multiple frames grouped in to multiple tags. I then run the following command (on macOS):
Both png and json file are now created, but it seems that enemy sprites just override the player sprites (drawn on the same location of the atlas).
Also when looking at the json frames for player use the same location as the frames of enemy:
The frame data contains describes the location and size of the frame relative to the animation. The spriteSourceSize contains the location of the sprite in the spritesheet, so that’s what you should be looking at.
Perhaps the official code makes a similar mistake, or fails to offset the art when packing multiple files…? I haven’t experimented with the texture packer myself D: