Hi guys , I´m working on a little 2d metroidvania style game with a couple of friends . Recently we talked about how cool it would be to have secret rooms in the game , and by secret rooms I mean little areas that are behind what looks like a normal wall but you can only see what is inside them when you enter the room . Something like this at 7:23
Hidding the room behind a fake wall would be pretty easy , the question here is : How do I make the camera only show what is inside the “secret room” when you are actually inside the secret room , making everything outside the secret room invisible (in the video´s case , completely black) ? Is this a problem that can be solved with camera functions/tricks or is there some way to achieve this via sprites/textures etc?
I really hope some of you can help me.