#creating tilemap physics based on pixels

3 messages · Page 1 of 1 (latest)

ashen lake
#

im new in godot and i couldn't find if is there a way to create tilemap physics based on what pixel is in the tile.

next willow
#

I don't think there's a way to do this in engine, but it's also not a great idea. You don't need pixel perfect collisions. Just draw the collision shapes to approximate the shape in the tile images. It just has to be close enough.

indigo sedge
#

Honestly surprised there isn't a way to do this also. While aproximation is nice I have noticed times where the neighboring tile is just slightly off and the player colision gets stuck in the tile when moving against it because of the small gap of collision between the neighboring tile.

It would be nice if all non-transparent points could automatically be marked for collision or even a way to import a collision mask on top of the tile sheet.