Ask here your questions to get help using GDevelop.
User avatar
By Lizard-13
#64171 It's is not possible right now, AFAIK :(

But the next version of GD will have some actions to copy/load any structure variable into/from JSON, so you will be able to do the following:
* First you have to put all the global variables as childs, inside a global variable structure called Globals (for example).
* At the beginning of the game, convert the structure Globals (with all the default variables inside) into a JSON string, and save it into another global variable GlobalsDefaultString.
* Everytime you want to reset the global variables, load the JSON string stored in GlobalsDefaultString into the structure Globals.
It won't work for variables created after the defaults string is saved, anyway the release date for a new version is unknown...
User avatar
By sleeper_service
#64172 Yeah not really possible right now, I switched almost everything to scene variables in order to at least have a way to do this by restarting the scene. Obviously that only works if you work with few or one scene only.
Last edited by sleeper_service on Wed 6 Dec 2017, 15:12, edited 1 time in total.