Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

How might I go about saving the Highscore and Settings for my Arcade Game?

A topic by poppy ribbon created May 29, 2021 Views: 143 Replies: 1
Viewing posts 1 to 2
Submitted (2 edits) (-1)

In the new version of Tree Invaders, I have added Game Settings to the Pause Screen. I also made a High Score Display that isn’t in the public version of the game right now because the High Score gets deleted every time I close the game.

To prevent this Data Loss, I want to Save and Load the Settings and High Score. But I am completely new to this topic, and what I have found about it on the search engine is too challenging for me to understand.

Can somebody please give me an easy introduction of saving and loading data in Godot games?

Submitted (3 edits) (-1)

Just when I published this post, I finally found what I asked for: This Guide on Saving and Loading Data on the GDScript Dude’s website was very easy to understand, unlike the other guides I found on the topic of ConfigFiles, which I could not understand. And once I also took a brief glance at the code in his Guide on Dictionaries, I also knew how to change the Save File values on the SaveData Singleton from the other scripts. I successfully used this to store the player’s Local Highscore in user://game_data.json.

Now i am using the same technique to store the Settings from the Pause Screen in a game_settings.json file. I know that I should be using ConfigFile instead to store the settings in user://config.cfg, but I already found something that works just as well, so why Should i learn this more complicated way to do the same thing?