
Advanced Blueprint Concepts 551
ADDING THE HIGH SCORE SAVE FUNCTIONALITY
Now that we are loading our d ata properly, we need to save the current high
score. We will ad d this logic to the MyCharacter where the score is stored.
39. Open u p the MyCharacter blueprint.
40. Add a variable called HighScore so we can compare it to the current Score
variable.
41. Make sure the type of the HighScore variable is integer.
42. Add another event dispatcher and call it CheckForNewHig hScore. This event
will be called once the game has ended to check if we need to change the value of
the high score. This event needs to take in a string, an integer, and a Save Game ...