How can I execute code for every placed tile in a tilemap?

I have a tilemap, and for every placed tile, I want to do some draw functions. How can I access the placed tiles, and grab their amount, position, etc? I hope the question made sense. Thank you for reading <3

Have a look at get_used_cells() and the various get_cell*() calls in the TileMapLayer docs:

Thank you! I’d also like to ask how to get the collision shape of the tile if that’s okay

That info appears to be in the TileSet data.

1 Like