T
tobii
Guest
Hey everyone,
so i am trying to add a highscore list to my end room (r_score) where the player can see al prev highscore and choose to start a new game or quit now the start and quit button work but i can't seem to find a way to add the highscores, it showes only one score all the time as well as in my save.ini file, now my question would be how can i make it put in more highscore so that i can print out that list on my screen? and how do i print the list on my screen? since it wont show any text here is my code
Thanks for your time!
so i am trying to add a highscore list to my end room (r_score) where the player can see al prev highscore and choose to start a new game or quit now the start and quit button work but i can't seem to find a way to add the highscores, it showes only one score all the time as well as in my save.ini file, now my question would be how can i make it put in more highscore so that i can print out that list on my screen? and how do i print the list on my screen? since it wont show any text here is my code
Code:
obj_score (just a UI thing for the screen)
//create
score = 0;
//draw GUI
draw_highscore(224,96,404,150);
//Parametres are for the position
draw_text(640/2-100, 340-32, string_hash_to_newline("Press C to clear high score"));
then we have the player obj
//create
alarm[0] = 200;
//alarm[0]
name = get_string("Please enter your name :","");
highscore_add(name,score);
and i also have a obj called death_timer
//create
alarm[0] = 60;
//alarm[0]
room_goto(r_score)