I’m a silver surfer and I’m trying to keep young by knocking up a 2d top down game, just for my own personal fun.
I have a main area, a town, with houses which the player can enter, where the player is then presented with an “inside”.
To do this I have a player prefab in each scene. When the player moves over an object with a collider, the “inside” scene of that house is loaded, with another player inside, which can then be moved. When the player then goes outside, the main town is loaded, and, more or less, the player is moved to the correct position.
This works more or less. I have some issues with the camera (long story), but other it’s OK.
My question is, is there a better way of doing this? I’ve given up trying to async load the scene, then move the player object to that scene to a given location (either x,y or ontop of an empty object). I just couldn’t get the player object to move reliably, if at all.
Are there other ways I should be looking at? Is this “best practice”?