Tilemap has collision on wrong tiles
Asked Answered
I

1

0

Hey there,

I am working on a 2d Top down game and starting to add the collision to my tiles, but suddenly some empty tiles that have no tiles whatsoever have collision that I didn't give them. I have two tile maps, one for the walls and one for the ground. Only the walls should have collision and only that map has the physics layer.
Here's an image as an example of what's happening.

Only the wall should have the collision, but the ground now does too. And it is the physics layer of the wall tilemap. If I disable collision here then those ghost collisions disappear too. Help.
Thanks

Intake answered 25/11, 2023 at 11:34 Comment(0)
E
0

Aside from accidentally adding collisions to those floor tiles, I’m unsure what could cause this. Have you changed the inspector’s collision layers for either tilemap? If the player and the floor tiles are on the same layer then that might cause collision, separate from the collisions you’ve added to the walls.

Are the tilemaps separate tilemap nodes, or are they both contained within the same node?

Explode answered 26/11, 2023 at 0:39 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.