How to make the spawn point move along a particular direction on a looping background?

I’m making an endless obstacle avoiding 2D game which runs along the x axis,on a looping background(a set of consecutive frames running in a continuous loop). I have my enemy spawners on the extreme right. The game works fine until it reaches the spawn point,but once the player passes beyond the spawn point(as the scene is continuously moving towards the right), spawn objects cannot be seen as it is now behind the main camera(moving to its right). Is there any way to make the spawn points move continuously along the x axis such that its always in the view of the camera?

Any information is greatly appreciated! Thank you!

Seeing your spawn code would help give an accurate answer. It would be easiest to just spawn somewhere in view of the camera. Either at a specific point or a random point horizontally within view. You can use viewport coordinates which start at (0,0) in the bottom left of the screen and go to (1,1) in the upper right. So if you did this:

var pos = Camera.main.ViewportToWorldPoint(Vector3(0.5, 0.5, 10.0));

You would spawn an object in the center of the screen at 10 units from the camera regardless of where the camera is pointed.