- Home /
This question was
closed Jan 13, 2015 at 11:14 AM by
AlucardJay for the following reason:
Duplicate Question. How-To discussions are best suited in the forums
Having doors to other scenes. How to do?
Imagine a sideview RPG where you have a village with some houses. In Unity, when you enter a door, you go to the scene of that house. In the house, you can use the same door to go back to the village.
How do I structure this mechanic? I have used Object.DontDestroyOnLoad() on my player so its kept between scenes. But when he enters a door I need to tell him to spawn in a specific position that should be based on the next scene exit door position, but I can't have this position because this door is in another scene, so I don't have access to it. I wanted to somehow link doors so when the player enters one of them it spawns on the other. What is the best approach to do this?
Comment