Hi, I just started using Tiled a few weeks ago, and I’ve been searching up and down for a solution. I’m sure it’s been done before, I just can’t figure out how.
My team is making a procedurally-generated 2D platformer in Unity, and we’d like to use Tiled and Tiled2Unity to create the room templates. We want to be able to create rooms using one ground tile, without manually placing corner/wall tiles, and without requiring a background. Theoretically, each ground tile would check its neighbours and turn into one of the ground/wall/ceiling/etc variations. Additionally, we’d like to be able to hand place special tiles like diagonals, which are treated as a ground tile by its neighbours, but wouldn’t automate themselves.
To my limited knowledge, the terrain tool wouldn’t be able to transition a tile to nothing, as we need the background to be transparent (we’re doing stuff with the bg in Unity). Plus I’m not sure how to generate collision with the terrain tool.
The solution seems to be to use automapping, but we’re using the 47-variation blob style tileset, and that seems like a huge undertaking to handmake rules for each variation, especially taking into account the special tiles. If anyone has already created a rules set for a 47-tile thing, I’d be amazed, and ask if I could use it!
Another solution would be to have Unity do the tile automation, as it seems fairly straightforward in C#, but Tiled2Unity creates the map on a mesh, and my team doesn’t know how to separate each individual tile. (This is our first project using Unity).
Finally, there’s bypassing Tiled entirely in our pipeline and just making the templates in Unity scene view. However, that’s way more difficult than we thought, and Tiled just seems so powerful that I know there’s a way to do it that I’m just not seeing. Plus I wouldn’t know how to do it other than placing one game object sprite per tile, and that seems like it could become very resource intensive (though I’m just the art guy, not the programming guy).
So yeah, like I said, I’m sure this has been done, so I’m sorry to have to ask, but I can’t find a solution anywhere. Automapping is likely the key, but it seems like a lot to create by hand. If anyone has any other solutions, or if they’ve already created a set of rules I could use, I’d be very grateful! Thanks again!