i’m trying to use an array to attach up to 4 movie clips, using the same script. My code I’m using to attach looks like:
if(en<=4){
EA[t] = attachMovie("enemy", "enemy"+t, depth++);
EA[t]._x = random(300);
EA[t]._y = random(300);
en+=1
t+=1
}
This part works fine, but what doesn’t work is the script I try to add to the movieclips. If i add EA[t]._x += 10, then only the lastly created enemy moves. How do i make it so that all of the enemies move?