I'm trying to add several sprites and their associated label to a create js container object using a for loop.
Is it possible to add both at the same time, like so?
NPCs.push(spriteBMP, spriteBMP2, spriteBMP3);
Lables.push(spriteLabel, spriteLabel2, spriteLabel3);
Loop:
for (npc in NPCs && label in Labels) {
spriteContainer.addChild(npc, label);
}
If not, how can I achieve that?