Hi,
Is there a way to get the collision group of a tile from it’s coordinates or tile id?
Something like tilemap.get_collisiongroup(tilemap, layer, x, y)
Or tilemap.get_collisiongroup(tilemap, tile_id)
Thanks in advance!
K
Hi,
Is there a way to get the collision group of a tile from it’s coordinates or tile id?
Something like tilemap.get_collisiongroup(tilemap, layer, x, y)
Or tilemap.get_collisiongroup(tilemap, tile_id)
Thanks in advance!
K
Thanks, I assumed so
Any idea of how I could achieve a similar result?
Hmm. Assuming the tile id’s won’t change often, you can maintain a separate table in Lua to make the lookup from tile id to collision group.
You could even create a script that parses the .tilemap/.tilesource to create a .lua file with this information. (They are text based files)
Is this still the case in 2024?