Scrolling Background

Hello again,

I have given up on the idea of editing the camera to get what a require. Why? because it doesn’t like me any more, (never really did).

My question is, is there anyway to make the scrolling background effect, like on Terraria, starbound and any other good 2D games, in a orthographic camera mode?

The perspective mode has proven a pain due to the fact, all side are perspective, not just the left and right view sides (My Previous Question for what i mean).

Thank you for your help in advance, Lachee

Yeah.

Build the world in several layers - from closest to camera, to farthest from camera.

Don’t move the layer which the player moves on.

If a layer is farther from the camera than the ‘player layer’, then whenever the camera moves, move the layer by a smaller amount in the same direction.

If the layer is closer to the camera than the player layer, do the same thing, but move the layer in the opposite direction.