ldtk icon indicating copy to clipboard operation
ldtk copied to clipboard

autoLayerTiles having too many tiles exported in some cases

Open jeremyfa opened this issue 1 year ago • 1 comments

I noticed that in some situations, autoLayerTiles contains tiles that are out of the bounds of the layer grid. Also noticed that some tiles are not discarded and removed from autoLayerTiles as well although they are below another opaque tile.

The AutoLayers_3_Mosaic.ldtk sample project does have those issues in the Walls layer, which is using "stamp" auto layer rules.

This is not blocking because I managed to discard those out of bound tiles in my parser (in Ceramic) by checking for each tile if it's not outside those bounds, and also managed to discard tiles below opaque ones thanks to the tileset's cachedPixelData, but I guess that would be better to handle this beforehand in LDtk editor directly, to make reading that data easier for parser.

Out of curiosity, I tested the rendering code for flixel provided by ldtk-haxe-api, and it does display tiles, even those that are out of bounds, so the issue is not specific to my parser.

jeremyfa avatar Mar 06 '23 14:03 jeremyfa