I currently have a platformer with the map made using Tiled. It works well so far, but there's one thing I can't figure out. I would like the background (which is a texture) to scroll slower than the Tiled map as the player moves. For example, when the player jumps up, I want the background image to "move down" but not as fast as the player moves up.
I've tried a few different methods, such as rendering it at a position equal to the player position multiplied by a number (0.04), but the background always moves with the player. I think it has something to do with the spritebatch or camera projection matrices, but I can't figure out exactly what to do.
Any suggestions? Thanks in advance!