How do I make my background layer stationary

How do I…

How do I make my background layer stationary while the player moves about in my 2d platformer. The player has the smooth camera behavior and the camera is set to follow the player on the base layer in the event sheet. I have a background layer that contains tiles for the basically the sky/horizon color which covers the whole screen. It has no parallax behavior, and no camera actions in the event sheet but it still moves with the player.

What is the expected result

I intend to add another mid ground layer with objects that will have the parallax effect so I need this one to be completely stationary since it’s basically just the colors of the sky/horizon.

The first image is how I set up the background in the scene editor which is how I want it to look. The second image is how the background looks like when I preview the game. That section on the screen follows the player around and the other parts of the background are never show up

did you put the background on another layer beneath the base layer?
mb i think you did

Yes I did. I don’t know what the problem is

Player and background cannot be on same layer
You cannot have same camera settings on both layers

Easiest fix is to make new layer
Put background stuff there
Move that layer below player layer
And you are done

After you put it on another layer, set the layer camera to center on screen.


It will remain in one place.

To achieve true parallax, you have to move the background layer at a slower speed:
image
The 0.3 is the speed between 0-1. But you have to change the camera behavior back to (top left corner)

This is exactly how I have it set up but it doesn’t work. Actually the background only stays stationary when it’s on the same layer as the player but I can’t have it that way because I need to put some mid ground elements in between the player and background

first try this to copy the base layer camera settings:

Imagine you have ONLY mountains in background

By stationary you mean
Mountains move with player?
So like if you move then mountains DO NOT move at all and you are seeing SAME EXACT background all the time
Like they follow you like sun that should not move but be in same position on screen all the time

Or do you mean that you move right and mountains go left?
Like you have there house so when you move house is not always in same position
You go right and house is moving to the left
Cause if 2nd one then add extension called Copy camera settings
And now copy settings from layer on which is player to layer on which is BG

I was already keeping it centered, but it isn’t working

This worked. Thank you so much

The second option is what I wanted. Copying the camera settings worked. Thank you