Tilemap collision not detected

Hi, I want to detect collision on tilemap but I can’t because any game object won’t receive any message about it. I tried in many ways and still don’t know why they don’t work even if I follow the manual. I used the physics debug option to see if the collision would eventually be generated and not detected by other game objects, but this is not the case since they’re not appearing.
This is an empty project where I tried to make it work. Is there something I’m missing? tilemap_collision.zip (21.4 KB)

You have to assign tiles to collision groups, otherwise they won’t have collision https://defold.com/manuals/tilesource/#tile-source-collision-shapes

1 Like

Also read this: https://defold.com/manuals/physics/#tilemap-collision-shape

I didn’t know I had to assign them by clicking after have selected the group, I thought it was automatic. Thanks for the answer.

You can have multiple collision groups in a tilemap. For example one for tiles you can stand on, another where the player takes damage and a third for water, and so on. That is why you need to assign tiles to each group manually.