Hi,
I have family with several objects. Family have boolean "own" as false. For clicked object I want to change "own" to true then save it in LocalStore. Could you tell me how to do it easly and clearly?
Did you try system "save"? It might be easier to just save the game.
Develop games in your browser. Powerful, performant & highly capable.
Yes but I dont want to save a lot of things. I need more control. I will read more about saving / loading arrays. Also creating a lot of global ints (0 or 1) and saving / loading for each object can cause a mess.
You can put all values you want to save into an array or a dictionary, and then save it with one action - Local Storage Set "data" to Array.AsJSON
To load - Array Set From JSON
Check out this demo:
howtoconstructdemos.com/easily-save-multiple-values-in-local-storage