Enemy movement isn't working

I am trying to make enemies move back and forth within 2 arrows either side of them.

this is the code i have so far from copying a post on here however Im sure i have done something wrong.

Jup
The force action is the same for both directions and you have 2 different direction variables.
http://wiki.compilgames.net/doku.php/gdevelop5/tutorials/platformer/part-6

1 Like

I think the angle on the right must be 0 instead of 180