I'm currently really confused on how I could select a tile ID from a tile map in order to modify it for all tiles with that specific ID. Lets say when I hover over a spike tile in my tile map it says the tile's ID is 183. For that specific tile, I want an instance variable Boolean (dangerous) to go on. If that Boolean is on for a tile, I want that tile to destroy the player. I only want this Boolean to be on for tiles with the ID from the tile map of 183 (the spikes). How do I do this? Is it even possible to do with a single tile map?
I haven't found any way to modify all objects according to their tile ID, or even use tile ID from the tile map for conditions in general.