I’m doing beta’s tutorial on “follow mouse with easing”, and was wondering how I could change the movement.
In his example the MC moves along with the mouse, but how could I make the MC move in the opposite direction of the mouse?
onClipEvent (load) {
clip._x = 150;
clip._y = 100;
speed = 10;
}
onClipEvent (enterFrame) {
endX = _root._xmouse;
endY = _root._ymouse;
_x += (endX-_x)/speed;
_y += (endY-_y)/speed;
}