Originally Posted By: Ruben


I then start the game over, and when the "NEW GAME" and "LOAD GAME" buttons show up, I click the "LOAD GAME" button, but I get the pop-up error mentioned above. However, I am still on the screen with the "NEW GAME" and "LOAD GAME" buttons, so I decide to click the "NEW GAME" button. The game starts up, and I now have 320 health like I had when I saved my game.


Because of the problem I have written in my first post.
The game is loaded, all the variables I think, BUT not the entity that is missing. So you got the error message.

And if you start then a new game, the health variable is already changed to the saved one, because you have loaded the savegame file. It is only not completely, because "levels" is missing in the save game file.

The health does not change to the original value of 500 because I am sure you have declared it with "500" before you start a new game. Not in the part after you have pressed "Start new game". So it keeps the value from the savegame you have loaded. Also if the savegame gives you an error.