Hello!
Sorry if this is a bad question, but I can't figure it out.
I tried google ing it, but maybe my terminology was wrong, as I couldn't find any answers.
My problem is that one of the labels of a small test game I have created won't update on the HTML build version.
This is especially weird since I tried all methods of changing the label's value, and the label's script currently looks like this:
extends Label
func _process(delta):
text = 'Highscore: ' + str(Globals.highscore)
I know that's maybe not the standard version of updating a label, but I can't figure out what the problem is, since it works just fine in the version of the game that I run in the engine, but when I go to export it, the HTML version won't update the highscore label.
For more information that might be related to my issue, the highscore is updated every time the score exceeds its value, and is saved in the Globals.gd script, which is a singleton (I also use it to display the score, which works just fine in the build). This is the script snippet I use to update the highscore:
Globals.score += 1
if Globals.score > Globals.highscore:
Globals.highscore = Globals.score
Thank you in advance for any help that you might want to offer, and sorry for the long post, I just wanted to explain my problem as well as possible. Have a great day!