This happened to me when I extended my tileset image to make room for more tiles.
Steps to reproduce:
- Create a tileset using an image NxM pixels (e.g. 160x160); file: tileset_small.png
- Create rules to autotile based on the tileset
- Create a level using those autotile rules.
- Outside of LDtk, expand the canvas size of the tileset image from 160x160 to e.g. 160x320; file: tileset_big.png
- In LDtk, open tileset dialog, click "Replace image", select tileset_big.png
Expected behaviour
Existing level remains exactly as before. Additional tiles are free for use in rules.
Actual behaviour
Tiles are scrambled. Appears to be because the tiles are not remapped preserving the location, and are instead mapped by a linear ID that assumes the image does not change dimensions.
This happened to me when I extended my tileset image to make room for more tiles.
Steps to reproduce:
Expected behaviour
Existing level remains exactly as before. Additional tiles are free for use in rules.
Actual behaviour
Tiles are scrambled. Appears to be because the tiles are not remapped preserving the location, and are instead mapped by a linear ID that assumes the image does not change dimensions.