My player has the ability to modify the tilemap. For example they can use the Hoe tool to change the tile from grass (TileID:0) to dirt (TileID:1282). And this works just fine, switching the tile successfully.
Once they change grass to dirt, the next step is for them to be able to water that tile, but the watering can should only work on dirt tiles. So what I am trying to do is check that the tileID underneath my aimer (used for targeting) is equal to TileID:1282 and if so they can water the tile. For this I am trying to use the "Compare tile at" action:
Compare tile at X: Tilemap.PositionToTileX(Aimer.X)
Compare tile at Y: Tilemap.PositionToTileX(Aimer.Y)
= Equal to
Tile ID: 1282
But this check never returns successfully, event though the tile underneath the aimer is a dirt tile (TileID:1282). What's odd is that if I set it to check for the grass tile (TileID:0), it does work. So I think that even though the tile image has been changed from grass to dirt, the tileID isn't actually being updated.
Is that what is going on here? If so, is there any way to get the tileID to update as well as the tile image?
Thanks in advance for your help!