Automapping 2 tilesets assistance

I am trying to understand how to achieve the below in Tiled: This is an image taken from this article describing the process of how the devs approached tiling in the platformer Celeste.

It is unclear to me how I would achieve autotiling 2 sets of tilemaps inside of Tiled?

  • Let us say input_TileSet1 → is referencing one tileset

  • input_TileSet2 → is referencing another tileset

In input_TileSet1 file I normally use a 1 8x8 dummy block tile (color green for example) to define my rules and then draw automap rules around it. and in the output_Out for example is where I place the tile for that specific rule.

For input_TileSet2, do I make another dummy block with a different color (purple for example) and define those rules in the input_TileSet2? and then add the tiles from the other tileset for that specific rule?

And in the actual map file, I just use the colored block to indicate which tiles I want to be automapped? Does that make sense, or do I have it completely wrong?

I shared that particular image, is because I would like to draw out my levels using different block and when I press ctrl+m it uses the correct tileset to draw out the level.

I would upload an attachment, but I just made the account recently and it is not allowing me to.

To simplify it further instead of using a different tileset I just created a variation on some of the existing tiles in the tilset with different colors and was trying to do what I described above, but no luck so far.

AutoMapping works with any and all tiles and doesn’t care whether they come from the same or different tilesets, so I don’t really understand the question or the difficulty you’re having.

If the blue and brown tiles (or your game’s equivalent of them) are in one layer (which they probably should be), you’d have just input_[that layer’s name]. Then for your output, you’d choose tiles based on which tiles (whatever tileset it’s from) you want to go there.

Is the problem that you’re looking to avoid defining rules for all N tiles x 2 tilesets output tiles? Can’t do that with Automapping, you will need rules for every different output you want to place, though you may be able to use the Replace Tileset button to speed up authoring those rules after making them for one tileset.

So if i understand correctly, where the tileset s are located doesn’t matter as long as the rules and are defined for each tileset in the input_Layername and the correct tile is in the output_whatever

my confusion is how would it distinguish between 2 different tiles having the same rule?

In the image circled the 2 corner tiles as an example, ideally I would like to draw those tiles with different colors and when pressing they keybind each corner would be mapped to a different tileset based on the rule. Lets say the brown would map to brick tiles and the blue would map to snow tiles.

This is how I would normally bind a rule for that corner in the input_layername:

and in my output_whatever would be the tile:

How would I have the same rule but for a different tileset in the same layer? I hope its clearer now?

Yes, you would need to have two separate rules for the two separate tiles if you need them to produce different outputs.

Would this work?

in my Rules.tmx

  • output_Output
  • input_LayerBricks
  • input_LayerSnow

I use the rule in the image below in both input_* layers:

and in output_Output:

I put different tiles for each rule

If I understand your working map example images correctly, a given location is either snow or bricks (or empty), so why would you need both LayerBricks and LayerSnow? Why not have a single layer that’ll have either snow or bricks tiles, and just check for the relevant tile on that layer? Seems like you should instead have, in your working map, a “Rough” layer that has your blocky snow/brick/spike tiles, and then your “Output” layer that’ll have the final tiles (though instead of “Output”, I’d call it something more meaningful). Then, your rules map would have “input_Rough” that has rules looking for either snow or brick tiles, and “output_Output”.

Could by chance make a small Tiled project as an example of what you are describing and share it here as a zip file? I am having a bit of a hard time visualizing what u mean :sweat_smile:

@eishiya ignore my last comment, I re-read your suggestion and it clicked all of a sudden.

Thank you so much for the help!