In a game I am making the players control ants who go to places that the player clicks. The ants die if they run into water and since the water flows around it would be pretty infuriating if they just suicide all the time. To try and remedy this I want to make it so that if an ant sees water too close to itself it will back off and regenerate its obstacle map. My problem is that LOS seems to pick up the origin point of the map instead of the position of individual tiles.
Can LOS be used to 'see' individual tiles in the tile map?
(As a side note if anyone has a better idea on how to do this I'd love to know)
Here is a capx:
https://drive.google.com/file/d/1pUnLZx ... sp=sharing