pixi-tiledmap
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
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>
Any fix?
Any fix?
don't use margins =p
My problem was related to the sprite file not with the margin.
Thanks