Hi, I'm currently making a game with Buildbox 3. I was wondering what happen if i publish an update of the game, like i added items to buy and levels. I'm storing information in the Settings variable. Like custom currency, items and whatever they are unlocked or not. Will that be reset ? Here is an exemple of my Settings : Settings.skins = []; Settings.skins[0] = {id:1, unlocked:true}; Settings.skins[1] = {id:2, unlocked:false}; etc... I don't want to lose the unlocked items, but if i make an update and add a skin, like Settings.skins[2] for exemple, the variable must be added to Settings when i update the app. Is there a better way to store information, keep it when i update the game and have the ability to add items ? Thanks in advance !
If you're updating the game and want to add new items without resetting the player's progress, you'll need to handle the saved data carefully. One way to do this is by checking if the new data exists when the game loads.
For example, when you add a new skin, you can check if Settings.skins[2] exists, and if not, add it without wiping out the other entries. This way, you won't lose unlocked items. A similar system is used in markets like the cs2 skin market where new skins are added without affecting existing collections.