hey there i just finished this mouse following code that basically simulates a swarm of flies just make a small very small dot or fly either way name it bug_mc and put the code on it:
onClipEvent(load){
_x = 0;
_y = 0;
speed = 5;
}
onClipEvent(enterFrame){
if(this._name =='bug_mc'){
_alpha = 0;
}
else{_alpha=100}
endX = _root._xmouse-25;
endY = _root._ymouse-25;
_x +=(endX-_x)/speed;
_y +=(endY-_y)/speed;
function rand(){
randnum = Math.round(random(20));
randnum2 = Math.round(random(20));
return(randnum,randnum2);
}
rand();
end2 = randnum;
end3 = randnum2;
_x+= end2;
_y+= end3;
}
and put this on your frame:
i = 0;
onEnterFrame = function(){
if(i<=50){
i++;
_root.bug_mc.duplicateMovieClip('bug'+i,i);
}
}
if anyone needs any clarification or just wants to comment post away.:party: