achievement -unlockable trophies?

How do you integrate unlockable trophies?

Do you have a save system implemented? If you do, you just have to add a flag there for if the trophy was unlocked. If not, I can help you implement one. :slight_smile:

I don’t have the save system, what can I do?

Sorry I’m late, but basically, you should make a struct that stores ALL of the data you want to save. I would recommend organizing it by having more structs inside this struct, like folders. You can have an achievements struct inside your larger struct, where you store which achievements have been completed. As for loading and saving a save, I use Gdevelop’s storage system. Converting your save struct into a string, storing it, then converting it back into a struct when it needs to be loaded.


I also have another struct that is identical to the save struct except it contains all the data that would be there on the first start. This is used when the player wants to delete their save file.

You should read up on this.
https://wiki.gdevelop.io/gdevelop5/all-features/storage/
Thanks for waiting :smile:

1 Like