Can anyone explain how the line of sight works in 2d? Which will be really help full for my 2d experiments. The experiment am working is a simple 2d simulation. Player move in the world from one place to other , my world exactly looks like this. I did the character movement successfully from one way point to other (A to G) , my goal is - when the character passes each point it has to perform some search in that area before it leaves to next point. To achieve I felt way point is better solution , can anyone help me on this.Thanks!
Edit :
As soon as the player enters a room/checkpoint I will take user to next scene like this
where the pickups are place some where on the canvas and my player have to collect them all and leave the area - Back to Map scene.