DaveTheCoder
Thanks for the reply, well i did use Android Debug Bridge and debug the game (bdw i did find diffrent errors and bugs and fix them, they did not show in the editor) anyway, i did not saw the saved file path but i did follow your idea and try the delete directory at windows and it did work, after that i did use it on android and it did work too 😃
var dir = Directory.new()
dir.remove("user://save_ui.save")
after that i had to detect when app terminated by player (with back button or use force)
for this problem, i used a autoload script, and this is the code:
func _ready():
get_tree().set_quit_on_go_back(false)
func _notification(what):
if what == MainLoop.NOTIFICATION_WM_GO_BACK_REQUEST:
var dir = Directory.new()
dir.remove("user://save_ui.save")
if what == MainLoop.NOTIFICATION_WM_QUIT_REQUEST:
var dir = Directory.new()
dir.remove("user://save_ui.save")
but this one still have problems, some times its not delete the directory. So i need a way that block the player open the android slide-back menu, so that player only can quit from the game the button (exit button) that i asing in ui. How can i block the open android back menu when game is open ?