Currently, I have a scrolling starfield in my space game that moves from right to left across the screen. This effect is nice, but I want something more immersive: I want the starfield to scroll in the opposite direction of the player movement.
For example, when the player ship moves up on the screen, the starfield will scroll down at some speed (there will be a speed cap for the scrolling).
Does anyone have ideas on how this would be done?
I think that would depend on how your scrolling your starfield. Lets say you set your starfield background as a bullet. If its set as a bullet you can change its bullet angle of motion to the direction of the player, then have it respawn in the same angle as the bullet angle of motion.
Honestly, I'm not to sure either but I thought I could pop up some idea in your mind. I may try to figure out how by this weekend unless you get a better response to answer your question