I have been trying to make my enemies follow me when they see me and I thought it would be easy as:
1)Adding a LOS behavior.
2) comparing the player's x and enemies's x to make him move.
But when I preview the project it's extremely weird, like he flips around every second and he's really slow.
Can you help me out.
I included a picture of the relevant code.