How to Load Player Save Data?

Hi JGO,

I’ve been trying to work out how I can load player save data from a text file and apply it to the current game state. I don’t mean how to read data from the text file, but how to change the game variables to the values in the file.

I have a Play screen which contains the Map and Player, but the properties can vary. For example, which map the player is currently in and what level the player is. I would like to be able to use a class called StatLoader or something like that to read the data and load the variables, but I’m not sure how to design it.

I can make the Play screen, Map, Player and methods in StatLoader static, but I heard this is not good design.

Can anyone give some suggestions?