Hello, I am very new to code and would like some help as to how to go about creating my game.
It is a 2d top-down RPG type game, and you’re in a town. The town has buildings, and you can go in them. But I want it so that when you go into the building it acts as an immediate transition to a separate scene.
Ideally I would like to separate each room into its own scene and just load based on a player entering the triggers and pressing a button, but then when the player goes back into the town how do I preserve the progress they have made (i.e. particular dialogues that have been triggered, getting a dog, etc.), and even just tell Unity to put the player outside the building as opposed to their original starting position when beginning the game? I apologise if that’s convoluted.
The only other thing I can think of to bypass that is just create those separate rooms outside the main town and just teleport the player and switch the cameras. But that’s going to be really messy, because there are at least 25 buildings the player can go in and out of. Having that in the hierarchy is going to be a nightmare. Also, programming is hard and I have no idea how to do that without hours of googling.
What do you think?