I'm currently playing around with a stealth platformer system and I've come up with an annoyance where the images for all the enemy sprites appear to be dependent on a single on screen enemy's actions rather than each specific enemy.
I've currently got it set that if an enemy faces left, then its image and its line of sight should also face left and if it turns around, the image and its line of sight should be mirrored. The line of sight image works fine, but even though it follows the same function all enemy images only mirror based on a one enemy's actions and don't follow their own instance (meaning it looks like some enemies are walking backwards).
Not sure what I've missed. Any advice would be appreciated (game attached).