Hi!
Im doing a top-down tilebased game in c++. Players can enter houses in which case roofs should be hidden (so you can see the enterior of the house. Right now i simply do:
if player is standing on a ground-tile that has a roof (player is inside a house) skip drawing ALL roof tiles.
I would like to only skip drawing the roof of that SPECIFIC building (not skip ALL roofs). Any clever way to do this? I need to find all "touching" roof-tiles and mark these for "hide"?
I could mark all those tiles with an unique ID when I place the building and hide/show based on that, but i would prefer a more flexible solution (if there are any).
Thanks!
Erik