mapeditor / tiled

Flexible level editor
https://www.mapeditor.org/
Other
11.17k stars 1.76k forks source link

Associating Wang sets of different tilesets #2848

Open basxto opened 4 years ago

basxto commented 4 years ago

It would be nice if a it was possible to tell Wang sets to get combined with one of the same name from a different tileset.

I’m thinking about something like <associate with="other.tsx"/>. This is helpful if you have for example a main tileset with grass, trees and other objects and a tileset for paths, which rarely gets used in maps, that should use the grass variations of the other one.

bjorn commented 4 years ago

I've recently posted an answer to this feature request on the forum: https://discourse.mapeditor.org/t/terrains-multiple-tilesets/4573/2

[This is ] not [possible] at the moment, sorry. You’d have to either use an image editor, or the somewhat hidden terraingenerator tool shipping with Tiled, to combine the various transitions into a single tileset. Using the tool has the advantage that you can also have it generate combinations (in case you have transitions to transparency) and it can transfer existing terrain info.

Alternatively, you can use different tile layers for each terrain.

The Terrain Tool works strictly with terrain indexes, which would cause issues when terrains from different tilesets are considered. It could be implemented, for example by collecting all terrains and matching them by name. It would be nice to get around to that sometime.

It's an interesting idea to explicitly let the user pick associate tilesets, but I'd prefer to avoid that if possible, and instead to simply have the option of matching terrains up by name and it would combine all tilesets referenced by the map this way.

basxto commented 4 years ago

That would work for me too.