Hello, all.
Have a quick question.
Has anyone found an easy coding solution for something like a semi FPS shooter motorcycle type game objects scrolling past?
Let me explain this better.
I have a great top down solution from this site for towers, which is basically done ingeniously with layer scaling of the same sprite (slightly larger scale on stacked layers) and just scroll to behavior on the player sprite produces amazing effects on the towers, totally believable fake 3D perspective.
For this, imagine something like a motorcycle driving on a road in less than first person, so the road basically takes up 3/4 of the screen with a sky above. Has anyone come up with a coding solution for say trees, rocks, or other sprites going by which is efficient, easy to code, and highly believable?
I imagine this would involve some sort of scaling of the objects going by like rocks or maybe layer scaling as well.
Also, the road would take up the whole screen horizontally, so I guess the perspective lines would be different.
One way to do it manually would be to draw out all the perspective lines maybe as a reference, from a central point maybe a quarter of the screen down and then use LERP to estimate in between positions? But this sounds awfully coding intensive, so thinking someone who knows this process better mathematically may have already done it in a jiffy.