1. You enter your unit commands, and the game makes a recording of the movements
2. Your opponent enters their unit commands, and the game makes a recording of their movements
3. Both recordings are played back at the same time, hits/unit deaths are assessed/etc
I've figured out how to record the movement of a unit sprite that is static (ie starts on the layout at runtime). What i'm having trouble with is recording the movements of created sprites like bullets that need to be created after the layout starts.
I think i'm not understanding how you would target a created array. Right now in my capx, the "bullets" array is the one that stores the movement of the bullets when they are fired. The trouble is, with only one "bullets" array, i can only store one bullet's position, so i need to create multiple "bullets" arrays (one each time a bullet is fired). How do i get access to these newly created arrays in the actions?
Here's my capx: http://dl.dropbox.com/u/64045180/TBSTest.capx