I am trying to make each the enemys start in an idle state and then attack the player when they spot them.
This has been done through using a boolean instance variable that is toggled when the player is spotted.
However when one enemy is alerted every enemy will chase the player rather than just the one.
Develop games in your browser. Powerful, performant & highly capable.
I can't see any reason why this would be broken, to clarify by chasing you mean moving or playing the chase animation? Looks fine to me, maybe they are all in range of LOS :)