How to set up a tile in a tilemap to detect the player or another object?

:bust_in_silhouette: Reply From: njamster

Instead of letting the TileMap detect where the player is, let the player detect on which tile they stand. Something like this should work:

var cell = $TileMap.world_to_map($Player.global_position)
var tile_id = $TileMap.get_cellv(cell)
match tile_id:
    0:
        print("Trigger Event A")
    1:
        print("Trigger Event B")