Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Hey! I don't know if I understood correctly all your questions but autotile rules (called automapping in Tiled) are restricted to the layer your're pointing to inside your rules(e.g. rule 1 wall.tmx) and it only looks to the tiles you use within this rule. So, 'rule wall1.tmx' is independent from the 'rule wall2.tmx', however, the order these rules are listed in the rules.txt matters. They are called from top to bottom. I'm actually using this order to create my rules. If you open the rules.txt you gonna see that I usually use 3 rules for each tileset.

(1 edit)

Oh, sorry, I'll try to explain better. If I use rule 1 wall.tmx and rule wall2.tmx on the same layer, they will not connect right? So then I'll have to use some tiles from the tileset manually to connect them?


The layer thing: If I have a layer with water, the the coast, then the mountain/walls. Then it wouldn't matter if coast layer is not perfect if I put wall tiles on walls layer on top of coast layer since people won't being seeing the imperfection of coast layer? Asking this dumb question because of collision for walls layer

(1 edit)

Yes,  they won't because the layer is just a place where the tiles will be placed. If you want them to connect you have to use tiles from both tilesets in your rule logic. I have an example of this in the Crypt asset for the baluster(B1 and B2).

If I understood correctly the layer in this case doesn't play any role here because collisions are per tile.

(1 edit)

I see, thanks for the clarification :) So far I'm liking Tiled a lot!


I'll be investing in more of your assets as I progress with my game :)

Btw, how do I activate the bottom part of this rule tile? Trying to use the wall tile to make 2 tiles high wall, but the bottom part is not being chosen.

(2 edits) (+1)

Press CTRL + M after drawing. The brush you're using is the terrain built-in brush. It only covers 1 tile height tilesets. Once you press ctrl+M the automapping will take place, meaning the rules will be called and the rest of the wall will be placed. Just don't forget that you have to draw on the layer with the same name that the rule for this particular wall is pointing to. I usually prefer to use just only layer for every wall just to get the auto tile working and then, after I'm finished drawing, I select everything I drawn with the rectangular tool(R) and place it to my permanent layer.

edit: if you are not sure if the layer name is right, you can open the rules to check it. You are also free to change the layer name used in the rules to best fit you workflow

(+1)

Aaah, I see! Thank you :D Sorry to have been bothering you so much these past days! Think I'll be good now.