Multiple Navigation Layers on the same TileMapLayer

Godot Version

Godot v4.6.2

Question

Hello,

I have some NPCs moving across a town going to some markers with NavigationAgent2D. And with a TileSet and a TileMapLayer I made a Navigation layer for them to not go across the road. I want them to follow the sidewalks and pedestrian crossings. I have no problems with this part.

The thing is that now I want them to follow the player sometimes. So, I made another Navigation layer on the TileMapLayer (+ Add Element). I put it on the Navigation Layer 2, then I recreated the first layer making the roads navigable.

The thing is that even if the Nav. Layer 1 is the only one enabled on the NavigationAgent2D, no npc moves. Same happens if I enable only the second one.

But, it’s interesting, because if I enable both at the same time only the first created npc moves, but it does not follow any of the markers it should go to, only keeps going o circles aroung a building.

If someone has any idea why this happens I would be very greathfull, I’m king of new with Godot.
Thanks.