How to make a sprite move from its spawned location to another point

We are attempting to set up a system of a moving line of obstacles for a 2d game and are not able to understand how to set up their movement from the point we are spawning them at, to the other side of the screen.