Posted By: JazzDude
high score carryover - 09/29/12 16:43
How can I use the saved high score, which is in a text file, in an equation in a subsequent level which is a separate game.
function points_startup() { var filehandle; filehandle = file_open_read("highscore.txt"); if (filehandle)&&(level == 2) { file_str_read(filehandle, name_str); points = file_var_read(filehandle); } else { str_cpy(name_str, "None"); points = 0; } }