I'm writing a Final Fantasy-like game engine, with 2D prerendered backgrounds and 3d player models.
I want to scroll the background according to player movments, but like in the picture below, the scroll speed changes with the distance.
I want a simple way to do this, I thought I move the background based on the position of the 3D model projected on the screen, but how?

Sorry for the bad english!