I want to make my enemy move a certain distance on the X axis and when it has reached that distance I want it to turn 180 degrees and go back along the X axis.
Basically i want the enemy to move from left to right on the X axis continously.
how do i go about doing this?

