I am building a top down view game in which the player is controlled by clicking on the destination. The player sprite has the Line of Sight behavior, and I would like it so that the camera only shows what the player sprite can "see." I have placed a layer above the player that can act as the fog of war and would like to set it up so that each tile that the player can "see" becomes completely transparent, and if the player can't see a specific tile, it becomes opaque again.
Is there a way to specify a single tile instead of the entire tilemap object?
Develop games in your browser. Powerful, performant & highly capable.