[font=Times New Roman][size=3]I have a function charge(chaser,player){ various code that works…} ; it tells one mc to move toward another, but that’s not important. So, I refer to the actual movie clips when I use the functions, charge(bug,man); It works! So, I put mc’s bug1 and bug2 on the stage. Potentially there will be tons of bugs (the insect, not flaw) and I want them all to follow the rules of the function, without me having to refer to them individually. I tried to use a for loop: for(i=0;i<3;i++){ charge([“bug”+i],man)
Didn’t work. Basically I want to know how to apply a single function to multiple movie clips. Any help is appreciated!
[/size][/font]