I'm making a 2D RPG and have just started using rule tiles for my roads however, I cant find a way to add inverted corners and work properly. If someone can help or send me links to YT videos that would be a great help. I have attached screen shots as to what I mean the bottom line is without the inverted corners using the rule tile. The top line is manually placing each tile with the inverted corners added.
I don't have a Tilemap project available right now but wouldn't it be something like this: For L-shaped corner - tile up, tile right, no tile up right? And then there was (IIRC) option to allow pattern match rotate the defined rule, to avoid duplicate rules. More specific rules should be first in the list IIRC.
You need to add the tiles that have the inverted corners, then try different rules for them until you find which works best. I kinda remember that you must select the corners themselves and the borders immediately near these corners. It's been a long time I haven't set a rule tile, sorry.
Taking the grey texture as an example: wouldn't the leftmost inverted corner require "This" for down, right, down-right? "NotThis" as the opposite. wouldn't the rightmost inverted corner require "This" for left, down, left-down? "NotThis" as the opposite. Both would be listed after the first rule for the "surrounded by This" sprite. I could be a bit off. Generally, it's most helpful when constructing these things to draw the different shapes that you want with the tile in a testing scene. My process is to draw (on a test tilemap) all conceivable situations (all corners, surrounded, up down sides, left right sides, etc). At this point, I've typically only drawn a single situation's art (e.g. "surrounded"), so it all appears very wrong. Only once I've done this do I produce most of the art. Then take your best guess at what the rule ought to be (that's what my bullet points above do). Then adjust because sometimes it's tricky because your best guess forgot a "This" or "NotThis" somewhere or added too many. Sometimes at this point I realize I need more art than originally planned if it's something complicated. But because you have all of the different situations down in your test scene, you can see the effect of not only adjusting this or that rule, but reordering the rules because sometimes that's important. Hope that helps.
"Okay thank you I'll keep trying" I thought you hadn't yet created a rule - so just add this one, and another for T-shape, and see if it works or not.
Right now, your inverted corners are matching this Rule: You will need to check the diagonals to be able to detect for inverted corners.
Okay, this thread was the first search result I found and was less than helpful. Here is the info you are looking for: Edit: I may have a few extra arrows in there, but it works.