I have a tilemap where som tiles are “lava”. I want to run my “kill player” function on overlap with these tiles.
In the map i plan to have lava, spikes and other tiles that kill the player so i have given all these tiles a parameter (in the Tiles editor). Now i want to check overlap with player and the tiles with the “kill” parameter and run my function.
Im thinking the setTileIndexCallback method is the way to go but it wants a tile ID. There may me a way to get the ID of all tiles with the specified parameter?