Automapping with the Tiled map editor
Thursday, April 17, 2014 - 08:58
I've been trying unsuccessfully to figure out the secret behind automapping with Tiled. I would like to replace a generic 'grass' tile with other tiles depending on its neighbors. The file I uploaded (at this link http://www.mediafire.com/download/cen5e9f15003y7p/Objects.zip, since apparently I can't attach .zip files) with map2.tmx and rules.tmx describes what I've done so far; I'm trying to replace the black square in map2.tmx with the black square with a boundary. But when I automap, nothing occurs, not even an error. What could I be doing wrong?
Hi findingme,
the rule looks fine.
However in the map2.tmx there is only a layer "Tile Layer 1", but the the rule is looking for "grass" layers.
Oh, so that was it! I feel silly and relieved at the same time. Thanks a bunch!
nevermind, feel free to ask away.
Huh? No, I mean, changing the name from 'Tile Layer 1' to 'grass' fixed all of my problems.
Hey findingme, I also struggled with automapping. I went through their wiki and found some useful information when I first started using Tiled, it was pretty helpful. Don't know if you've seen the wiki but here's a link:
https://github.com/bjorn/tiled/wiki
There is a link on there about automapping if you want to learn more. There are videos and quite a bit of useful documentation. The version number might be out-dated but it's still quite useful and relevant.