How to anchor parallax layer to scene?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By to-dog

I have a level stored in a separate scene which contains a TileMap and a Parallax Layer with 3 backgrounds. I instance that level in my main scene and just add it to the main scene parent (without any transform/offsetting).

When I make the player camera current, the backgrounds snap in place in a different location. The moment when the player camera is made current can be seen in the embedded gif.

enter image description here

To enable the player camera I have a method on my player class with the following two method calls:

func enable_camera():
  $Camera2D.limit_bottom = get_viewport_rect().size.y
  $Camera2D.current = true

What causes this behavior and how do I make the parallax backgrounds stay in the same places as in 2d scene view of the level?

My parallax layer motion scale x values are 1, 1.3, 1.5 . Just testing out those parallax layers for the first time, so I might be making some obvious mistake there.

did you have Mirroring??

Mrpaolosarino | 2021-04-07 00:33