Hey guys! I’m working on a mobile game and I’m trying to save my highscores and coins collected after every death of the character. It’s some kind of ‘hyper-casual’ game. So, in the editor, my Save Game works really fine, no trouble on that. Also, when I lauch my game, it works fine.
But in my alpha version in Play Store, it stopped working. Here follows my code. My Load Game is called ob Begin Play and my Save Game is called everytime the player dies.
Can anyone help me?
Thanks
PS: the branch at the end of SaveGame is because I had a “Print String” there to see if it was working, forgot to remove to print.
If the highscores are only local that would be enough, but if you are uploading them to online highscore table you should include some kind of encryption to prevent people from altering their highscores by messing around with the save file.
Also make sure your app has the permission to read/write files
add <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> to Android manifest file
Hope it helps