How to save the game after completing a level(via collision)?

Hi all!
I want to make a save of completed levels that would then add “run the last completed level”
Thank you to all who helped. Who can help with two questions at once?
I have already created SaveGame and GameInstance
Sorry for my English :sweat_smile:

Hello! I think I can help. This would depend a bit on how your level structure is set up but I am assuming you are using different maps for each level.

What you can so is create an actor with an overlap trigger (probably a box) and then check for the player and connect your save game functionality from there. If you want to add the “run the last completed level” check you can either make an exposed variable with a custom name to save each name, or you could use the Get Current Level Name node.

This should allow you to add this info to your save game file. You will need to add this variable to your save game object as well to fully save it.

1 Like

Hello @BRGCooper!
Okay I’ll try

I apologize for the incorrect translation
I have several collisions(16)
And I want to make sure that every time a player enters these collisions, he saves it as the last completed level, and saves and loads it when necessary.
Sorry again for wasting your time

That’s okay. This can still work. Saving the current level name when you reach any of these collisions can still save your level, you just may need another variable to save the current collision they last overlapped.

1 Like

Understood


Hello! you know where to connect Target this variable is located in SaveGame?