This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

So basically I have 2 tilemaps - one tilemap for non-solids and 1 tilemap contained in an Area2D for solids. The reason I made 2 tilemaps is because I have projectiles that I want to remove when they hit a wall, so I made a separate tilemap for walls that I put in an Area2D so the projectiles could detect collision with the walls. This works fine, the projectiles get removed once they hit a wall.

BUT, now when I try to make my character go towards a wall, he goes straight through. I've tried putting the tilemap outside of Area2D node, but it still won't resolve the collision. The tilemap has the exact same settings and masks/layers selected as the other tilemap. When I try to put a solid wall into the first tilemap, it works fine, and the character doesn't go through the wall. But when I do the same with the second tilemap, it doesn't work.

Godot version 3.3.3.stable.mono
in Engine by (195 points)

1 Answer

0 votes


The problem was that I had the "use parent" flag set to true in my tilemap's settings. After disabling this flag, the collisions worked as expected

by (195 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.