I’m currently playing with tiles and tilemaps.
What I do is having a lot of small tilemaps that I change dynamically to create some kind of autotiling.
I was having some weird lines between my tiles when the camera moves so I tried to set “extrude borders” to 4 and it worked well.
After the last update, my tiling went crazy. And when I set “extrude border” to 0 then the problem disappear.
Is there something I don’t understand about this parameter or is this a bug ?
For some reasons after having touched some parameters this issue stopped and the game began to run normally. Just after that I closed Defold and launched it again and the issue came back even if nothing has changed in the project.
The bundles however never show this behavior will it be macOS or HTML5 even when the build acts crazy.
I’m very new to Defold so really I’m not sure to quite get what the “extrude border” parameter does, but for what I understand it creates another texture under the hood that have some borders between tiles to avoid edge bleeding, and uses that textures to draw the tilemaps. By setting the tiles dynamically in script I should not take those new borders in consideration right ?
Yes, it is normal. I would assume it is because the width and height “crops” the image. Makes me wonder if the tilemap we see is the one that is exported how ever.
Ok I think I have found what is causing this strange behavior.
It is interesting in fact, it was because two tilesources were using the same image.
Don’t know exactly what was happening but surely now with two different images the bug does not occur anymore.