0 votes

I have install in my android phone my project but i create here the file:

var savegame = File.new() #file
var savepath = "res://savegame.save" #place of the file
var save
data = {"highscore": 0} #variable to store data

res:// path doesn't work with android?

Anybody can solve that, for create a new file?

in my assets can locate savegame.save file too

thanks a lot

in Engine by (16 points)
recategorized by

1 Answer

+1 vote

res:// becomes read-only after compiling the game(you can only read files from it, not write). Use user:// instead.

by (195 points)

Ok i discover what happning.After files was created with a create_file( ) function they there created with res:// after i deleted user:// accepted.

thank you for help

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.