How do I create a side scrolling background?

I’m am making a 2D platforming game and I need to make the background I have move when the camera moves, but I want it to move slower than the camera. How do I do this?

Broadly this is called parallax. Bunch of ways to do it, each with implications.

Try out a few Youtube tutorials on it to get the hang of things. No sense someone retyping it all here!

7596847--942418--Screen Shot 2021-10-23 at 11.44.38 AM.jpg

thanks!