When I try to create one tileset with a lot of tiles inside, the map is created properly, but when I add a second tileset or a second tile separately, when I export the map in json and open it in Corona simulator the map is not displayed as it was in Tiled.
Hm… I can’t reproduce this on my end. Can you zip up a map that demonstrates this and send it to me (PM if you want)?
Unfortunately, there isn’t an automatic way to get rid of flickering tile lines. You can set the texture filter:
display.setDefault("minTextureFilter", "nearest") display.setDefault("magTextureFilter", "nearest")
And you can make Dusk round the camera position:
dusk.setPreference("enableCameraRounding", true)
But other than that, all you can do is extrude your tileset.
I do have a command-line tool to do that for you, but it hasn’t been updated in a while and I’m not sure if it still works (man, that sounded professional!). Check out “TOAD” in the Dusk repository and see if it works for you.
I don’t know of any tileset tutorials, but a quick Google search of “how to make a tileset” shows some that look good. Margin and spacing are simple - margin is the amount of space around the tileset, and spacing is the amount of space between each tile. If you extrude your tiles by 2px, then space them so they have 2px of transparency between, your margin and spacing will both be 4px. If you remove the transparency on the outer rim of the image so that the outside tiles are touching the edge of the image, your margin and spacing will be 2px and 4px, respectively.
- Caleb