Hey guys, hoping to get some input on this. Here's how I have it written out
global highscore = 0
scr as integer
//scoring
if GetSpriteExists(3) = 0
CreateText(1,"Score:"+str(scr))
SetTextSize(1,35)
FixTextToScreen(1,1)
DeleteText(2)
endif
if GetSpriteExists(3) = 1
CreateText(2,"Highscore:" + str(highscore))
SetTextSize(2,35)
DeleteText(1)
FixTextToScreen(2,1)
sync()
endif
Whenever a collision box is triggered, the score is increased by 1, it works flawlessly when I use the Print() cmd, but fails to update the score, and highscore when using the CreateText() cmd. The second If statement here seems to be working fine as well, the Highscore is updated, and is ultimately saved and updated if there is a new highscore detected.