thats means i need to beat my highscore its hard now
You can just reset it in your save-file
really how
atleast in godot, when you click on your savefile.dat
but in godot i dont have in filesystem savefile.dat
i think it should be here:
Project β Open User Data Folder
yes, i need to open it with notebook or smth like that yes ? or just delete it ?
any texteditor
Just delete the file actually
okay in godot it worked but in my web game still shows 25(i think it saves in web browser) and i cant beat it
Im dont know how the loading of the highscore works in a web game
okay i will try beat it
for testing purposes you can try this:
func load_highscore(default_value: float = 0.0) -> float:
return default_value
var file = File.new()
if file.file_exists("user://savefile.dat"):
var err = file.open("user://savefile.dat", File.READ)
if err == OK:
var content = file.get_float()
file.close()
print("Loaded highscore: ", content)
return content
else:
print("Error loading highscore: ", err)
else:
print("Save file does not exist, returning default value.")
return default_value
can you look in the output and look for the word βsuccessβ
after beating the score ?
Yes, you can replace the previous method i sent to reset the score
yeah just i need to export my game one more time i have already exported 22 game version maybe there is an other way to do that not just exporting every time
Okay in your AdManager.gd script change the print:
func _on_set_score_completed(success):
print("Success: ", success)
And test it in godot