• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Name not appearing on leaderboards?

T

TheLMan101

Guest
Hi,
First time programmer, definite newbie, trying to make the most out of what little I learned at university :p I started making a game where you avoid things falling from the sky and, when you lose, you submit your score to the leaderboard. And yet, for some reason, my high-score table doesn't save the name or score of the player. Mostly using DND, but with a bit of coding here and there, here's my code -

//when the player runs out of lives
global.name = get_string("GAME OVER! Enter your name:","")
highscore_add(global.name, score);
room_goto_next()

//on the high-score room
draw_highscore(150,50,1770,1030)

if I'm doing something obviously wrong, please let me know, but I've tried changing the variables to the global versions and back, and everyting else in between, that I can think to change
 
Top