[LibGDX] Forground and background camera pan

What is the name of the effect where when your camera is panning in a game, the foreground is panning by at one speed and the background is panning by at a slower speed? I am looking to implement this in LibGDX so if someone could roughly outline how this is done I would be very grateful!

My brain has completely blanked here, I’ve seen this before but never programmed it!

I think you are talking about parallax scrolling. Is something like this?
If yes, you can do it by using one camera per layer.

The flappy bird tutorial on kilobolt’s site might be interesting to look at.
It has a simple tutorial on parallax scrolling.

Yes indeed it is parallax scrolling! Thank you very much to you both :slight_smile: