Basically i've got a variable in a class called score which is keeping the score of my game.
I am making a screen at the end of my game that displays the final score the player ahceived. As when the player dies the score variable is reset to 0 i need another variable called highscore which i have put inside its own class.
However the problem is that i dont know how to make my high_score variable hold the score variables data and stop it from resetting to 0 so i can display the final score on screen.