Creating and Loading a game save

Hi,

I want a basic system so that when I place a ‘BP_Save’ trigger in the game world and the player overlaps it either of the following happens…

  1. If a Game Save doesn’t exist, create one from that point.
  2. If a Game Save does exist, update the location.

From the Main Menu when I click the ‘Continue’ button I want the player to spawn at the most recent BP_Save location.

Current setup

  1. Creates a Save Game if one doesn’t exist on overlap of collision box, or updates location if one already exists.

  2. Continue button clicked from Main Menu BP (it just removes the widgets and doesn’t possess the player)

1 Like

I can see that with the current iteration, the player is spawning, although not in the Player POS location as he is in total darkness and is falling through the map.

What’s going on here? :slight_smile:

Just break the transform and stick the location in the spawn.

1 Like

My champion! glad you are here, I changed it to the below and the result was the same

Next stage is print node, print that transform. Is it what it should be?

Fixed up the following in the BP_SaveGame as it was using a flip flop instead of branch, I will start testing as you suggested :slight_smile:

1 Like

Hmm okay, everything seems to be working correctly, but I did notice that when he spawns the level does not, something amiss with the persistent level and loading level 1 it seems.

1 Like

Okay its working now, I had to unload the main menu level and load in level 1, I will need to think on the logic of all this for a while as the player progresses to different levels and overlaps other save points, thanks for the assist! :slight_smile: (like using object reference properly ahah)

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.