F
#Frogglets ;-;
Guest
Hi,
for my game I want one highscore to appear which is your personal best rather than a whole table. My code was:
with (obj_player)
if obj_player.hp <= 0
{
global.finalscore += global.thescore;
}
and:
if global.finalscore >= global.highscore
then{
global.highscore = global.finalscore;
draw_text(100,100,string(global.highscore));
}
draw_text(100,100,string(global.highscore));
whenever I try to do this tho my highscore equals out to 0 everytime and I dont know how to resolve it. Any help would be greatly appreciated!!!
Thanks, A_Froggo
for my game I want one highscore to appear which is your personal best rather than a whole table. My code was:
with (obj_player)
if obj_player.hp <= 0
{
global.finalscore += global.thescore;
}
and:
if global.finalscore >= global.highscore
then{
global.highscore = global.finalscore;
draw_text(100,100,string(global.highscore));
}
draw_text(100,100,string(global.highscore));
whenever I try to do this tho my highscore equals out to 0 everytime and I dont know how to resolve it. Any help would be greatly appreciated!!!
Thanks, A_Froggo