Save Players "Best Time" record (Longest time survived in game)

I’ve setup a timer widget and then display it via my character BP and all works fine. What I can’t figure out is how to save the players “best time” record and store it somewhere for them to view upon the “game over” screen

The idea is to survive as long as you can while the timer counts upward. When the player dies the time they lasted displays on the “game over” screen along with their “best time” so they know what time to beat for a new record time. I’m still fairly new to UE5 and it boggles my mind how I would setup a timer to know if its reached a new high score time and then save it. Racing games do it all the time so I’ve tried looking for tutorials but can’t find any. Thank you for any guidance!


If you take a look at the ‘game instance’, you’ll find it survives where many other objects don’t. So you can store the high score in there, and get it out later in the game over screen.

If you want the game to remember the high scores between sessions ( restarts ), then you also need the ‘save game’.

1 Like