How do I make a object move in one certain path?

I want to have a dangerous sprite to be able to move back and forwards in one line. Plz help.

I’m not sure I understand. Do you just want your dangerous sprite to move back and forth on the ground?

Its fine, ive sorted it. Thanks anyway :smiley: