you need to save a text file once you have finished playing your game. This could be when you return to your menu screen and hit exit
or after you have completed a game died etc.
function saveHigh()
rem save the high score
write = OpenToWrite("highScore.txt" ,0)
String$ = Str(high)
WriteLine (write,String$)
Closefile(write)
endfunction
function loadHigh()
rem load the highest saved score
If GetFileExists("highScore.txt")
read = OpenToRead("highScore.txt")
String$ = ReadLine(read)
high=val(string$)
Closefile(read)
endif
endfunction high
rem using the following functions just require high=loadHigh() to be placed somewhere in your initial setup code you may find making it global might help
rem save the highscore at the end of each game or when you exit the game properly after it has returned to your menu and you exit
GOODLUCK
fubar