How to stop layer from moving?

How to stop a layer from moving. I’m trying to make a door transition to another room which is in the same level. I made each room by layer so that if the player teleports to another room the previous room can be hidden, this is so that its not lag. Yet the other layers follows the camera of the player, is there anyway to stop layers from moving and just make them stay at one place like the base layer?



Thank you in advance

the problem isnt that theyre following the player, the problem is they arent.

i dont really recommend using layers for this…and i know for a fact unless you have poorly optimized code, this will not be a performance issue.

Do you have a camera following the player?
Are most of the layers using this?
image

If the camera is following the base layer (in which I can see there are), the other layers are meant to follow at an offset.
If you don’t actually even need to see the other rooms before entering just hide the layer and unhide when needed.