Good day! I hope that someone can help me, I am attempting to create a simple fog of war for dungeon purpose. I assumed this was possible, but I have no idea how to go about it once I sat down to do it.
I'm trying to exploit this "SceneManager._scene._spriteset._tilemap.children[0].tilemap.upperZLayer.alpha = 0;" on created black/semi-trasparent tilesets in common events in order to create a sort of fog of war.
What I achieved so far is the possibility to set ALL upper(or lower) tilesets "invisible" by changing the alpha to 0.
Is there the possibility to change a single tilemap alpha instead of all the tileset? So I could use that for different tile on different part of the map and choose which one have to be revealed.
Exemple: when hero touch lever A, reveal hidden room A (change alpha = 0 of tile 1), when touch the lever B, reveal hidden room B (change alpha = 0 of tile 2) and so on.
I'm kinda stuck. Any ideas?
I'm trying to exploit this "SceneManager._scene._spriteset._tilemap.children[0].tilemap.upperZLayer.alpha = 0;" on created black/semi-trasparent tilesets in common events in order to create a sort of fog of war.
What I achieved so far is the possibility to set ALL upper(or lower) tilesets "invisible" by changing the alpha to 0.
Is there the possibility to change a single tilemap alpha instead of all the tileset? So I could use that for different tile on different part of the map and choose which one have to be revealed.
Exemple: when hero touch lever A, reveal hidden room A (change alpha = 0 of tile 1), when touch the lever B, reveal hidden room B (change alpha = 0 of tile 2) and so on.
I'm kinda stuck. Any ideas?