MZ Can I highlight a tile?

Hi!

I am attempting to make a pathfinder. I'd like to debug / keep track of how algorithm performs visually, and would like to color / highlight tiles depending on how the algorithm treats them.

Thus, can I highlight or color a tile?

Thank you.
You could manipulate the map data. It's just an array of tile ids.
You'll want to keep a copy of the original tile array to change back to when you're done. But other wise changing a tile would be like
$dataMap.data[17] = 50; Setting Square 17 to tileid 50.
$dataMap.data[17 + ($dataMap.width*$dataMap.height)] would be the same position but the next layer up. Idk, maybe you'll want to reserve the upper layer for highlighting with a semi-transparent tile or something.
this could work, but the data isn't saved and is removed upon saving/loading
the game.

if you want to save those if you can save any time, use my plugin to
save $data on save scenes.

I dont know if the plugin works in MZ, but I think it should if they
are the mostly.

Original thread: https://forums.rpgmakerweb.com/threads/can-i-highlight-a-tile.151011/