I am making a space game where a spaceship can be moved around the screen to dodge asteroids while the background of the screen is scrolling. My issue is I have no idea how to make a scrolling screen that scrolls indefinitely at a constant rate, meaning that the movement of actors will not affect scrolling. On an unrelated note, I am also trying to figure out how to make an array list for asteroids, since the screen will scroll infinitely and asteroids will be randomly generated to be in random locations for the spaceship to avoid (asteroids cannot overlap and cannot be closer than a certain distance from one another). Any help is appreciated.

