Tilemap collision auto generation

Hi to all, defold is awesome )

Now question: how to AVOID auto generation collisions on tilemap? Case: i paint tile collision for different walls, but for non “fully square tiles” (contain transparent space at edges) engine generate not collision squade but collision polygon. This is good, but sometime this behavior is redundant - i want strict quad collision on tile with transparent holes at edges. How to reach this?

Thanks.

2 Likes

From what you describe it sounds like you want non convex shapes, right? If I misunderstand maybe you can screenshot?

The physics engine do not support non convex shapes so you have to split into separate shapes.

1 Like

Sorry for bad lang … look at third tile (right)

collision shape looks like polygon, but i need shape like at first and second tile. Just simple quad not convex not polygon. How to change tile collision or edit generated shape for tile?

You have convex polygon in all that tiles. Look closely.
You should copy tileset image, paint over it tiles solid quads, and set that new image as “Collision” in tilesource. Original image set as “Image”, of course.

4 Likes

Ok, thx, looks like solution …