1
Example: the guy was playing and in the middle of the stage he closed the game, hence how to make so that when he opens the game again he goes back exactly in the part (or phase) that he had been terminated?
1
Example: the guy was playing and in the middle of the stage he closed the game, hence how to make so that when he opens the game again he goes back exactly in the part (or phase) that he had been terminated?
Browser other questions tagged javascript c# unity3d
You are not signed in. Login or sign up in order to post.
You even made some tutorial related to data serialization in Unity, like this, for example? I believe that save exactly the state of the game will be complicated, but you can save some data related to the player’s avatar and/or the phase in which it is, and then load from there.
– Luiz Vieira
Really it would be difficult, but if saving only the stage, coins and items even if going back to the stage at the beginning is already good! I’ll take a look here, Thank you.
– Leonardo
I found a little broad this question, it would be interesting to know where you want to get, what the expected end result. Because you can save this information in many ways. Manipulating various file types, Playerprefs, do not destroy the object between loads and so on. Find an approach that makes sense in every part of your game, and if you encounter problems post a more targeted question. Only these three that I mentioned give a video of an hour each without going into detail. Imagine writing everything here in an answer.
– Nils
Ok, I was looking for it, it’s the only item I have left to start a game (because before I gathered all scripts I will use and tested (some missing adjustments)). The game has beyond the levels, an inventory, and the collectibles (coins), hence this is what I would have to save, no matter what the means of doing this.. The question was this because I thought it would be simpler to "pause" the game when closing and continue when opening it.
– Leonardo