Howzit?
I'm making a game where you drag walls at 90 and 45 degree angles to design rooms much like in The Sims or any architecture game, but I'm having a lot of trouble making the game recognize rooms.
My first idea was to have the player tell the game, "This is the bedroom, this is the bathroom, and this is the kitchen," with player placed zones. I want the room to have a green overlay when it's given a zone so that the player can clearly see and deactivate zone view.
To make a room fill with a zone upon being clicked, (paint bucket style) I went with a tilemap. I made areas fill with a new "room zone" tile when clicked, but after much research I don't believe it's possible to then have the game recognize how many there are of a tile on a tilemap. I also tried building the floor out of sprites which, when clicked, will activate adjacent floor sprites as "IsRoom = True" until they meet a wall, but I can't figure out a way to make each tile only spawn a single transparent "room zone" sprite on top of it. That's because each sprite is being touched by many other active "IsRoom" tiles for even a single tick.
I appreciate any alternative ideas or solutions!