Unlocking the map only when the character gets there?

Hello guys, i’m pretty new on Unity and game dev, but i love indie games, even more if they are those pixel art games.

So, i’ve been trying to learn how to use C#, Java script and unity. already learned how to draw my own characters, tiles, weapons and all that sprite stuff, learned how to:

  • Make him jump;
  • Walk
  • Hit
  • Take damage
  • Enemy walk and hit the player
  • Spikes and stuff that causes damage
  • Open Chests and stuff like that
  • Pick up itens

And i think thats all, but really want to learn how to make a certain part of the map appears only when the Player gets there, imagine this:

I start the game in my room, there is a door and outside the door there is kitchen, bathroom, streets and all that stuff, all of that separated by doors, but when i start the game i want the player to be able to only see his room, when he open the door to the kitchen then he will be able to see his room and the kitchen and if he opens another door to the bathroom he will be able to see his room, kitchen and bathroom.

Something like the game “The final station”, anyone knows where can i find a tutorial for doing that?:slight_smile:

Thanks everyone, i’m sorry about my english and if i posted something that i shouldn’t.

Hey Mike, congrats on learning what you have!
As for the question, this is a very complicated answer. There are many ways to achieve what you’re asking but I feel you’re asking for more of a level generation, going by how you want to see the room and generate it.

I don’t know if your talking about Occlusion culling when you say “see the kitchen” Hidden-surface determination - Wikipedia