Hi there, thank you in advance for taking a read. Hopefully, I explain myself well enough and don't come across as an idiot!
So, in our game, our enemy has an instance variable called Phase. We use this to advance the enemy through its various motions, animations and attacks.
However, we have one location that has three enemies in and all of them act in sync all the time. Regardless of whether the conditions are met within each phase (Screenshot attached)
In this example, the "OctoSpitter" is meant to activate when you're within a short distance of its X and Y coordinates. However, if one of the "OctoSpitters" does the spitting animation. All of them do the animation.
How do I correctly make these little blighters act independently?