I just made a code that makes an mc following the mouse!
Put this in the mc’s action and see the result!
And put the framerate to 30-120 or something for smooth movements.
onClipEvent (load) {
var wait_time = 50, a = new Array();
}
onClipEvent (enterFrame) {
a[a.length] = [_root._xmouse, _root._ymouse];
_x=a[a.length-wait_time][0], _y=a[a.length-wait_time][1];
}