Tilemap tile detect collision with another tilemap tile

Godot Version

godot-4

Question

Hey everyone. I’m working on making a random dungeon generation code. I’ve gotten it functional and I’m not trying to figure out how to properly populate the tiles. I currently know how to do the room tiles just fine, but now my issue is the path tiles. Bascially I need the path tiles to tell each wall tile which way it needs to face i.e. a path tile oen square below a wall need to change the wallsprite to a upward curve tile. My current method was extremely cursed. I made my path tiles have a cross shape expanding outside of the tile, assuming I could make it detect that way, but it seems like there isnt a function for making tiles detect other tiles. Does anyone have any advice?