You don't.
There's no dynamic allocation. You need to use fixed sizes. You have to set your array size to a number that is high enough for the entire duration of the game.
I was laying down monorail track and having each array slot correspond to a track piece. That system wasn't working out so great anyways, for unrelated reasons. I scrapped that system this afternoon.
But thanks for helping! Better to learn that sooner than later.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Well it seems Starcraft II won't resize an array like it did in Warcraft III (probably a good thing).
So now my question is, how do you resize an array, or if not that, overwrite it with a bigger array variable?
@LazyCoder: Go
Quick workaround would be just to start your array out as its maximum size?
Create your own boundary variable for loops.
You don't.
There's no dynamic allocation. You need to use fixed sizes. You have to set your array size to a number that is high enough for the entire duration of the game.
Bah humbug!
I was laying down monorail track and having each array slot correspond to a track piece. That system wasn't working out so great anyways, for unrelated reasons. I scrapped that system this afternoon.
But thanks for helping! Better to learn that sooner than later.