So, in my game, after you lose, it takes you to a layout that shows you your score and the high score. I wanted to have the high score persist when you close and open the game again, so I decided to use the save game action to do that.
Turns out, it doesn't exactly work as intended. I thought a save file only kept the values of variables. It does save the variables, and the high score variable is kept as it was before, but when I have the game load a save, it jumps to the game over layout, the one where the game is saved. It was supposed to only load the variables and stay in the same layout.
I'm clearly doing something wrong here.
How would I do something like this, the right way?