I
iBack
Guest
Hi, I'm new to game maker and GML and want to know how to make a highscore board.
So far, i have been following the tutorial made by Shaun on creating "your first game in game maker studio 2" and learning this way. I have completed to tutorial and am adding features to this such as, going back to title screen once pressing esc and pausing the game. I now want to create a highscore board that appears at the title screen once the player has cleared the stage.
So it will work like this...once player has cleared the stage of enemies, the game will go back to title screen with the player total score. However, I'm not sure how to do this. I'm stuck at clearing one enemy then goes back to title screen instead of clearing all enemies then going to title screen.
this code within the obj_enemy step event, adds to score once you clear enemy and takes the player back to title screen after clearing one enemy. can someone please help me with this, im not sure what to do next.
So far, i have been following the tutorial made by Shaun on creating "your first game in game maker studio 2" and learning this way. I have completed to tutorial and am adding features to this such as, going back to title screen once pressing esc and pausing the game. I now want to create a highscore board that appears at the title screen once the player has cleared the stage.
So it will work like this...once player has cleared the stage of enemies, the game will go back to title screen with the player total score. However, I'm not sure how to do this. I'm stuck at clearing one enemy then goes back to title screen instead of clearing all enemies then going to title screen.
Code:
if (hp <= 0)
{
with (obj_score) thescore = thescore + 5;//kill counter
instance_destroy();
room_goto(rm_title);
}