so the issue I had was the enemyA go left even though it was at the left of the player because enemyB was at the right and enemyB's location was also moving enemyA how do i fix this?
Develop games in your browser. Powerful, performant & highly capable.
The post is kinda vague with no information but you could try adding a 'for each enemy' condition and see if it is handled better.