I'm doing a 2d tool program based on sprites.
I'm looking how to save all the sprites properties like: Name, X/y position, instance values, opacity,effect parameters,etc... in a file and after in a new runing load that file that create all the sprites with their properties to regenerate the same composition.
I saw the sprites have a AsJSON and "set from JSON" but, how i tell the code how to create the sprites and how many sprites and in which one add what properties ¿?
I search in the forum and i saw this one:
Changing the SaveState to text instead a global number save/loads the properties of the object, but i have no idea that how do the rest.
I guess, at least for save, create a family called "sprites" and using an Array plugin and then: For each sprite save their JSON state in a X. so i will have stored in each X(x1,x2,x3) the properties of each sprite. But how i save all that in a .txt o .JSON file and how load all that after to recreate the same composition? :S
I tried another way using the System:save but each file gets near 80mb and saving is a bit slow, works but is not an option .
So, how i do the .json thing?