In 2D games, this is usually called a parallax effect, and it’s what makes far away background objects scroll past slower than nearby background objects. I COULD achieve this effect by making the game 3D, and use actual depth but that starts to get messy very quickly, as the area the game takes place in is quite large.
So what I want to do is scroll the UV of a background plane based on the movement of an object (the player character). The player object (a space ship, in this case) uses inertia, so the scrolling of the background has to be based off of the objects vector and speed.
So first I need to make the uv map scroll with the ship, then I need to make the scrolling effect slow down slightly in comparison to the ship object.
So where should I start? would this be something I can use the videotexture module for, or do I have to manipulate the UV’s directly? Also, is there any script out there already that does something similar?