pixi-tiledmap icon indicating copy to clipboard operation
pixi-tiledmap copied to clipboard

Error: Texture Error: frame does not fit inside the base Texture dimensions: X: 65 + 32 = 97 > 66 or Y: 1 + 32 = 33 > 66

Open skeddles opened this issue 6 years ago • 3 comments

This error seems to happen if you try to use margins when creating a tileset

<?xml version="1.0" encoding="UTF-8"?> <map version="1.2" tiledversion="1.2.1" orientation="orthogonal" renderorder="right-down" width="32" height="32" tilewidth="32" tileheight="32" infinite="0" nextlayerid="2" nextobjectid="1"> <tileset firstgid="1" name="testtiles" tilewidth="32" tileheight="32" margin="1" tilecount="4" columns="2"> <image source="testtiles.png" trans="004080" width="66" height="66"/> </tileset> <layer id="1" name="Tile Layer 1" width="32" height="32"> <data encoding="base64" compression="gzip"> H4sIAAAAAAAACu3PMQoAMAgDwNb/P7qTUFxKF13uIINTzFoA8LZLusXgD3Elu/Pu/KHu7+qv26f21wAAfw6sZbC2ABAAAA== </data> </layer> </map>

testtiles

skeddles avatar Jan 18 '19 01:01 skeddles

Any fix?

salsa2k avatar Jun 12 '19 19:06 salsa2k

Any fix?

don't use margins =p

skeddles avatar Jun 12 '19 19:06 skeddles

My problem was related to the sprite file not with the margin.

Thanks

salsa2k avatar Jun 12 '19 22:06 salsa2k