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
To achieve true parallax, you have to move the background layer at a slower speed:
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
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