Im using the default save load system from c2 but when in cocoon it gives me an error.
I would like only to save and load some global variables like upgrades, levels, gold, etc.
how can i do this the easiest way?
Develop games in your browser. Powerful, performant & highly capable.
You could use webstorage : https://www.scirra.com/manual/120/webstorage
i have like 100 global variables 5 for each upgrade, is there any way i can save it all and dont have too add 1 by 1
Indeed that's a lot of variables !
You could use an array instead of 100 globVar, and the saving would be easier (save the array as JSON).