I’m making a 2D platformer and I’m dividing rooms with doors. I want to restrict what player sees on the other side of the door until the player opens the door using the trigger before it. That is, I want to turn the whole room dark, and when the door opens, an animation plays as the darkness disappears and the room is revealed. I’m not sure how exactly do you call this feature, it’s similar to a fog of war. The whole level is made up from multiple tilemaps.
To provide an example, you can take a look at any Enter the Gungeon gameplay how the player enters a new unopened room. I want to do pretty much the same.