Just finished the tutorial from Friends Of Ed Foundations AS book. A simple duplicateMovieClip with a while loop and staggered instances linked to the distance of the mouse. I followed thru step for step but dont get the “exact” result in the book. My original instance was placed at the x,y coordinates (290,190) and according to the tutorial, the math equasion is designed to stem the effect from that center point. However, the result I’m getting looks off center awkward.
any thoughts???
here’s the code:
i=0
while(i<10){
i++;
duplicateMovieClip(particle_mc, “particle”+i+"_mc", i);
}
onEnterFrame = function(){
xDist = _xmouse - 290;
yDist = _ymouse - 190;
j=0;
while (j<10){
j++;
_root[“particle”+j+"_mc"]._x = 290 + (xDist * j/10);
_root[“particle”+j+"_mc"]._y = 190 + (yDist * j/10);
}
}