Цитата:
|
Сообщение от Tom Frost
aaa._x = _xmouse - 150
aaa._y = _ymouse + 200
А штобы они не одновременно с мышой двигались, можно паузу вначале мувика поставить. вроде так
|
Вроде не так........

Код:
MovieClip.prototype.toMouse = function() {
speed = .25;
setInterval(function (targ) {
x = targ._x;
y = targ._y;
xm = _root._xmouse;
ym = _root._ymouse;
targ._x = x+(xm-x)*speed;
targ._y = y+(ym-y)*speed;
}, 50, this);
};
mc.toMouse();