I second the Array recommendation... You are storing data for cells in a 3d grid... This is like what the Array object was exactly made to do.
It would honestly probably make saving and loading 10x easier for you also.
Printable View
Oh wow, lucky i saw this thread. I am just making a random generated world out of strings in an ini and currently it takes up 65kb.. and that is just the prototype world without any other data and with just a fraction of all the stuff I want it to have when its finished :/. Could you use several Ini files to get around this? If I would use an array how would I save the data so I can retrieve it at any point?
The array object has the option to save. for loading the file you'll need to use fast loops to process and place the tiles. There's plenty of examples covering how to do this.
I'm not sure that the array object is supported by flash. For flash people tend to use INI. You may need to look into changing the way your levels are stored to reduce the file size.
For example you could use room codes for layouts and wave codes for enemy spawns. This will require you to configure many premade room layouts and enemy waves. But reduce the INI file size dramically.
Array seem to be supported by Flash and iOS, as far as I know I think it is supported on all runtimes. I talked to Simon a bit about this and he said the difference is how the array is loaded and saved on different runtimes. Anyone have experience with array with flash apps?
as far as I know, the only way to store data locally on android is through the ini object, which is a shame since array is much better for level editing and such
Flash does not allow access to the user's computer files. Use the INI object, which stores and saves as a cookie.
Mav
I am pretty sure it is possible to use array to save in Flash to? http://community.clickteam.com/showthread.php?t=74183&highlight=array
Now I am a bit confused :s I need an alternative to INI because of its filesize limit of 64kb :/ Or can I use several INI files to store more data?