Hello. I am new to Unity and just started trying to figure out the 2-D extras package (I’m using Unity 2020). I would like to create a Tile rule but I am having a hard time figuring out the rules for how to order the tiles and assign their rules. My tiles look like this:
I would like to create a rule tile that would allow me to click and drag to create a room. In my brush editor, I added all 9 tiles but I cannot figure out how to order them so they create the right shape. Here is the rules I defined:
I’ve tried different combinations but nothing that ends up looking right. I don’t know if I’m using the wrong kind of tiles? Or i just don’t understand how to set up the rules? Or both? Anyone have experience with this who can advise?
Try putting the more complex rules at the top and the least complex rules at the bottom. That usually works most of the time and you can tweak from there for special cases. In case it’s not clear, by “complex” I mean “having a large # of neighbors with arrow or X.”
Also several of your rules could be improved. Unless dealing with a special case, normally it’s best to define a rule by an arrow rather than an X. For example, your final-listed corner piece should be defined by having neighbors (arrow) up, up-right, and right. That’s basically an inversion of how its defined right now. Use Xs when arrows alone won’t work.
Yikes. That got dark fast. But, the video Eses posted really wasn’t helpful. I did watch the video before posting and it is too high level to address the specifics of how to use the rules to create the rule tile set.
Thanks for this. Yes, I recognized I would also need corner pieces, so I have been trying to figure out those rules, and that’s where I’m stuck at now. I added these images. Would I need to add any other?
This is what I ended up with. I think it works. I have seen any issues yet. But, I wanted to post back here, in case anyone finds it helpful. Thank you for your help raarc and lorenzo!
“But, the video Eses posted really wasn’t helpful”
I fail to grasp what part was unclear for you in that video I posted…
2:15 → shows how you can set the rules and what x and direction arrows mean… and they also mention that you can order the rules by moving them up and down in list.