Are you sure the tiles are on another layer to the player? In the editor, have them both on the screen. If you hide the player’s layer only (by clicking the eye icon for the layer) do the tiles disappear too?
If not, then it could be one of three things:
The tiles have camera follow behaviour on it.
The tiles are on the base layer and the player isn’t
There are events that move the camera for the tiles’ layer.
Thanks for help but I already figured it out, I set the tilemap to base layer and set it’s z to 0. But I still don’t know why new layers stick to the camera.
Yes, base layer is what the smooth camera behaviour works with. I can’t answer for why new layers follow it, other than that maybe the layer the objects are on is the base layer, and not the intended layer. Make sure a dragged object’s target layer is selected - the layer will have the filled white dot next to its name in the layer panel:
To make sure we aren’t using the wrong vocabulary:
When you say ‘follow the camera’ do you mean they stay visible on the screen?
If so, they aren’t following the camera. The camera isn’t moving. Each layer has its own unique camera, and each layer has to be moved independently via events.