If I need specific objects to remain in the same position, even if the Player reloads their game, would using PlayerPrefs be the best way to go about it? It's not really the intended use, I realize...
For example, let's say I make a game where the player Saves their game, and then throws an apple into the next room, where it lands and sits there.
The player reloads their game, and the apple is still there, in that spot.
To do this, I imagine I would just save the position/spawn/scene data in PlayerPrefs and access it on the newly loaded game? Are there any downsides to doing this?
Of course, this also means that I would need a new step:
Something like 'Check Save Slot;' so that I can run a check in events and make sure I save and load data specific to each save slot so no data gets mixed up. Would that be possible?
Otherwise, you can store this information (scene, position, etc.) into game variables as well :)
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
To help clarify a bit, this is to retain a Dark-Souls-style Bloodstain mechanic while being able to even utilize Save/Load games. So for example, the Player dies, it leaves a Bloodstone (tombstone) that contains all of the player's money on the spot where they died; and then the game reloads to the last point saved. When the player returns to that spot, the Tombstone will still be there.
I originally solved this problem by never loading a new game and simply teleporting the player back to a save and reviving them. While this method works well, it's also a big headache for having to reset all variables that the player has triggered since saving, and reloading the save does that so much more efficiently.
But on second thought, though; this method may raise new design issues as well. But is there any downside to using Playerprefs as a method for storing variables that you'd want to persist across even newly loaded games? (make a serious choice, even reloading won't change it, etc)
---------------------------------------
Personal Twitter: https://twitter.com/AMO_Crate
I make RFI! https://twitter.com/NootboxGames
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
---------------------------------------
Personal Twitter: https://twitter.com/AMO_Crate
I make RFI! https://twitter.com/NootboxGames