- Home /
Question by
asdf123 · Nov 30, 2014 at 12:58 PM ·
c#multiplayerpositionxml
Multiplayer - Spawn in the last position
I have my multiplayer structure done, players can create a server, join it etc..
What I want to do is to make players save their position on the server and then when they re-log they get instantiated on the last position they were. I tried a .xml file in the server, but it gives me a lot of work and I don't know if it is the best way.
Can someone tell me how can I make this ? I don't want to use database.
Thank you.
Comment
Best Answer
Answer by wesleywh · Dec 15, 2014 at 05:35 PM
Have you look into PlayerPrefs? I am currently using it in my game to save the area that they are in. As far as a specific location in that area I haven't done that before but I am sure you can make it work the same way.