Check out this basic LoS code, there is an object behind the wall that the player cant see, using LoS to make the object visible or invisible accordingly.
Note that all walls are visible, even ones the player shouldn't have LOS to (see the second wall behind the object)
Now, applying the same idea to walls makes ALL walls invisible...
I'd like only the first wall in a player's line of sight to be visible, and make all walls behind said wall invisible. I'm asking for how I would implement this.
Also, I get that an object being a solid would block itself from being invisible, but I'm just wondering how to deal with that.
Thanks for sticking with me so far
Edit: fixing images...