I’m making a top down view space game. I’m using Rendercam.
I need to make a star background with parallax (both position and scale, as you can zoom in and out).
My current solution is to place 9 sprites (3x3) in a game object and child it to the Rendercam game object. I then have a script that handles the movement and scale parallax. The 3x3 seamlessly looping grid means I can recenter the game object after sufficient movement.
I don’t like this solution because it feels janky, and the sprites have to be large to account for the maximum zoom-out.
I’d ideally have 2 or 3 layers (to give the illusion of some stars being closer than others), but would be happy with an elegant single layer solution.
How would you do this?
Hoping to nerd-snipe someone here…