I’m am trying to make a Save and Load system for my game.
I want it to work like this their are up to three slot you can save.
In your Menu you can Load your game file.
[Slot 1]
[Slot 2]
[Slot 3]
Like a Rpg Game.
By the way I want the Save file to be save on to the computer.
And How can I Make it so if I every update the game the player will keep their save file.
Plz Help.
Take look at unity serializer Save Game-JSON+Binary | Input Management | Unity Asset Store. it has same kind of saving slot system as you descriped. I’m not sure if serializer files can be untouched on updating your game. It depends on your updater.
The most simple and fast way, it to use PlayerPrefs. And also look at PlayerPrefsX addition here according to this link:
private Vector3 myPos = Vector3.zero;
//Function of data loading using slot number
public static void LoadDataFromSlot(int tpSl) {
//See correct of slot how string Slot1_PlayerPosition and etc
string nameSlot = "Slot" + tpSl.toString() + "_";
//For example position of your character, how Vector3
myPos = PlayerPrefsX.GetVector3 (nameSlot +"PlayerPosition", Vector3(100, 50, 0));
...
}
public static void SaveDataToSlot(int TpSl) {
//See correct of slot how string Slot1_PlayerPosition and etc
string nameSlot = "Slot" + tpSl.toString() + "_";
//For example, save position
PlayerPrefsX.SetVector3(nameSlot + "PlayerPosition", myPos);
...
}
I hope it will help you.