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.

The force action is the same for both directions and you have 2 different direction variables.

1 Like

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