If I save on more than one slot, choose to load one first then a second one and save, when I come back to the previous one, all the variables have been overwritten with the others, both slot entered name, character variables, and so on.Now, save and load between levels work fine as intended, and so it seemed for the save and load from slots, cause actually I don’t get anything unusual/strange from all the print string I’ve placed, it saves and loads to and from the right slot, at least until I found out two problems: Save and load functions have both a sequencer that gets the data from the variables on the savegame object and sets them again to character, controller and inventory variables, and viceversa. ![]() Each time I save or load to/from a slot, the slot number is also set to a int variable in the game instance, so that I can later use it from within the character controller (where main save and load functions are) to save and load game to that same slot number, always combined with an append and string as the main slot name.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |