Coding 2 Saving and Loading


So I tried to implement a saving and loading system for DreamScaper.

I made a blank project to experiment on.

Here was my original plan:

1. Have a manual save and load system that would track the player's position.

2. Have collectibles and objects that can be interacted with, and have the game save and load them.

3. Have the game save whether the items were interacted or not. 

4. Create a puzzle for a door and key

5. Have checkpoints that would make saves, overriding the previous one

So building the map went smoothly. I made custom models, visuals, and audio for the project from scratch. As it was simply a test map, I made it a simple straight line. 

The save and load system worked fine for the player stats. Saving would track the player's position, health, and stamina. Loading would load the player stats correctly as well. 

Unfortunately, the system was incredibly flawed. It would save and load the player position just fine, however the coins and door would not work. If the player would collect a coin, and then load a save that took place before taking that coin, the coin is still gone. This also happens for the door as well. 

I did everything I could think of, I rewatched all my professor's videos on the topic, followed the instructions, ensured consistent coding, and in a desperate attempt, I completely remade the code from scratch to see if it would work. I made my custom code for the save and load, and I made a different version of the project and spent some long nights troubleshooting the issue.  

I aim to improve these issues in the future, however this has been a very annoying experience. 

Files

Coding 2 Package.zip 570 MB
73 days ago

Leave a comment

Log in with itch.io to leave a comment.