Before proceeding, please use the forum search feature at the top of the page to check if your question has already been answered.
Hi,
as the title says I’m having a problem with my game’s savegame feature. When loading a saved game the player often isn’t standing where he was when the game was saved. Sometimes he is, then he is not. It seems random.
At first I was only using the “save game to device storage” action. When this didn’t work I saved the player’s x and y positions in addition (see image). Now I’m using both but the result is the same.
I also added “wait x seconds” and “trigger once” because I’ve read that this might help but it doesn’t seem to make a difference.
There’s no need to save the player’s X & Y values if you’re already using the “Save game” action.
Make sure you’ve added SaveConfiguration behaviour to your player, and under the advanced properties of the behaviour add the profile name “player_only”:
In the save and load game actions, use the “player_only” profile instead of “default”. This will only save the state of all the objects with the profile “player_only” in their SaveConfiguration behaviour:
As a suggestion, instead of having all those delete actions, consider placing all the loading and saving objects into an object group, say named “SaveObjectsGroup”. Then you can delete them all with 1 action “Delete SaveObjectsGroup”.