It's really not turn based, more like browser based. It's sort of like Age Of Empires, where a bunch of dissimilar units can travel in the same battery to a designated location, at the speed of the slowest unit.
But I don't know how to store this information on the units. I've been using mysql, but it seems way too inefficient using what I've been using for other data. What I've been doing thus far is loading strings that separate data variables with commas, exploding and imploding them for flash and/or the server to parse.
But in order to store the location of a squadron of different units, using this method, I'd have to implode the implode of a string, that should make sense. For instance, this would be the variables stored.
The identification:
,cyborg-soldier-human-wizard,cyborg-human,human-soldier,cyborg-wizard-soldier,
The quantity of each:
,100-120-30-12,14-15, 17-2, 1500-20,90-2-45,
And then the x and y position like so because they are all at the same location:
,40,50,60,70
,40,90,0,270
The health would work the same way.
All the information on the units is stored before hand. Once flash receives the information, it will split them into arrays, then split that array into smaller ones, and then further into classes to easily move/organize them Age-Of-Empire style.
Is there a better way to store the information? Perhaps non-mysql? Everything will be processed through php and actionscript, fyi.
And also:
If an swf is on a server, can it read material that has file permissions that allow only the server to view them?
Thanks in advance