Saving on checkpoints and continue from menu!

Hi there!

I am making my own sidescroller game and I want the game to include ‘invisible’ checkpoints where whenever the player passes them, the game will autosave. Then on the main menu, player will be able to continue the game exactly from the latest checkpoint. There is no sort of inventory nor any items that player will be able to pick up and store the item on player prefab so that won’t be neccessary. The only thing I need is a proper save & load function which player won’t be able to manage nor. I just want the game to save on some points automatically and I want the player to be able to click a “continue” button in order to continue where he/she left off :slight_smile: Thank you so much for reading, I’d apprecite ANY answer at all!

Happy holidays and merry christmas!

Fortunately Unity has an easy way of doing this.

You can use playerprefs to save data like health, score, current player location and the scene(level) he is in and any other variables that you need in order to restore the scene later.

When you click continue in your menu just load the same level and all the other variables you saved earlier like position, health and score.
Even if you later add any inventory/items you can just save them as variables and restore them too.

Happy holidays for you too

2 Likes

Thank you very much for your answer, GNGification :slight_smile:

This problem is solved!

I solved it by using UnitySerializer asset at: Unity Asset Store - The Best Assets for Game Making

1 Like