So here's the deal I have 2 arrays like so:
private static const level7EnemyTypesArray:Array = new Array(11, 11, 10, 9, 9, 10, 10, 10, 12, 12, 10, 9, 10, 10, 9, 10, 11, 9, 10,10, 9, 10, 11, 9, 10, 9, 10, 10, 9, 10, 10, 9, 10, 9, 11, 9, 9, 10, 9, 10, 10, 9, 10, 9, 11, 9, 9, 10, 9, 9, 10, 11, 10, 9, 10, 9, 10, 9, 10, 11, 10, 9, 10, 9, 9, 10, 10, 10, 9, 9, 11, 9, 10, 9, 10, 9, 9, 10, 11, 9, 12, 10, 10, 9, 10, 9, 9, 10, 11, 9, 10, 9, 9, 10, 9, 10, 9,
11, 9, 9, 10, 9, 10, 10, 9, 9, 11, 9, 10, 9, 9, 10, 9, 10, 9, 11, 9, 10, 9, 9, 10, 9, 10, 9, 10, 9, 9, 11, 9, 10, 11, 11, 11, 99);
private static const level7EnemyPositionArray:Array = new Array (0, 0, 1, 1, 5, 5, 2, 0, 4, 2, 0, 1, 0, 5, 5, 2, 0, 4, 0,
0, 1, 1, 0, 5, 2, 3, 4, 0, 0, 1, 0, 5, 5, 2, 0, 4, 0, 0, 1, 0, 5, 5, 2, 3, 0, 0, 0, 0, 1, 5, 5, 0, 3, 4, 0, 0, 1, 1,
0, 3, 4, 0, 1, 5, 2, 3, 0, 4, 5, 0, 0, 1, 2, 3, 0, 4, 1, 5, 0, 2, 3, 4, 1, 0, 0, 5, 2, 4, 0, 3, 1, 0, 0, 5, 3, 0, 2,
0, 0, 1, 5, 5, 2, 0, 3, 4, 0, 1, 1, 5, 4, 0, 0, 1, 5, 0, 3, 2, 4, 1, 5, 0, 0, 1, 5, 3, 2, 0, 4, 1, 0, 0, 0, 99);
Each enemy type in array 1 corresponds to a position in array 2 at the same location. so enemy 11 spawns at position 0 and so on.
But maintaining this is a nightmare.
Now I've done a fair bit of coding c++ and in the situation I would create a vector of pairs. However
I've looked and AS3 doesn't seem to support this. Is there another way to do this?