Enemy moves somewhere, having mental breakdown? Godot Tutorial

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By wickedwe

So I am doing https://godottutorials.pro/action-rpg-godot-tutorial-part-2/

I used the script exactly as it said there…I even and copy and paste thecode from the downloaded actual project (where the enemy actually chases you) but my enemy just wanders off outside the map and goes around in circles… its like he caught my insanity. He aint alright.
Help! What could have gone wrong?
No error codes or nothing.

edit: Idk if this helps but for some reason my move_forward is right and move_backwards is left… for some reason. And left is forward and right is back. Anything here maybe?