Do variables updated in the Game Mode Blueprint transfer from level to level?

General scripting question here…

Let’s say I create a variable (such as an integer “Score” variable) within the Game Mode Blueprint. I load up Level 1 and in that level I do some things to score some points and the “Score” variable within the Game Mode BP is appropriately updated. If I THEN traverse to Level 2 (via an “Open Level” node) and attempt to print the “Score” to my screen, is my “Score” variable contained within my Game Mode Blueprint SUPPOSED to reflect the score I earned in Level 1 yet (if it’s the SAME game instance?) OR, does this variable get reset back to it’s default value when I close out of level 1 and go to level 2?

For variables such as a “Score” variable that I want to update consistently from level to level…where WOULD be the best place to store that variable if NOT the Game Mode BP?

GameMode variable (to my knowledge) get reset every time you load a new level. However, you may be able to use a game instance to do the job :slight_smile:
I’d recommend checking out the following video to get up to scratch on them: - YouTube Hope this helps! :slight_smile:

You could also create an custom event to save the score into an array in a SaveGame BP so you can continue to call the variable no matter what. I do this in my game so i can call there “Best Time” when they select a level but can be used your way easily, i can post SS’s of the way i do this if you want or you can watch the various youtube videos on how to use the SaveGame BP, but this way they will always have that score for that level and can be updated