Godot Version
Godot 4.3
QuestionHello everyone,
I’m new to Godot. I’m creating a game where the player could click on a button that would instantiate a TileMapLayer which is a room I’ve predefined and could place it in a basic empty TileMapLayer then could create as many rooms as he wants but I don’t know how to check the collision between the rooms so they don’t overlap because they’re on different TileMapLayers.
At the moment I’m going through all the cells where I want to place my new room from all my existing rooms to see if they’re already occupied but I don’t know if this is the right method, especially as I then want a character to be able to move between all these rooms and I don’t know if this is possible between several TileMapLayers.
Could you help me?
I hope my question is clear, thank you in advance for your help.