- Home /
Best way to move between maps
In my first area, there are four locations plus the place you start in. In order to stay consistent, I need to move the "spawn-point" to the right area outside the "door" to another map. What is the best way to do this? Simply cache your transform in player prefs? Do I need an array of locations?
Thanks!
Answer by ScroodgeM · Aug 30, 2012 at 09:17 PM
answer to your questions depends on how do you spawn objects.
with simple method Instantiate you can pass a new position for instantiating, so all you need is to pass position needed.
and yes, anyway you should store somewhere an array of locations. this can be array of Vector3, or some empty gameObjects placed in "spawn-points"
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
How to tell if an int is even 2 Answers
PlayerPrefs: loading saved data from the menu? 1 Answer
Keep a min distance away from object while moving towards it 0 Answers