How to use Line Of Sight behavior with multiple enemies? My enemy sprites have Platform behavior to control their movement.
For the enemy AI I've got something like this:
If Enemy has LOS to Player > Enemy simulate Platform pressing Right, Left, Jump, etc.
It all works fine with a single enemy but as soon as I create two or more enemies I start having this problem:
If Enemy #1 has LOS to player and simulates Platfrom pressing Right or Left then all other enemies do the same even if they don't have direct LOS to the player...
How to solve this problem?