# Mouse follwo with easing - reverse?

**URL:** <https://forum.kirupa.com/t/mouse-follwo-with-easing-reverse/72036>\
**Category:** Uncategorized\
**Created:** [December 1, 2004, 6:47pm UTC](https://forum.kirupa.com/t/mouse-follwo-with-easing-reverse/72036 "2004-12-01T18:47:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![age6racer](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@age6racer](https://forum.kirupa.com/u/age6racer)\
**Post date:** [December 1, 2004, 6:47pm UTC](https://forum.kirupa.com/t/mouse-follwo-with-easing-reverse/72036/1 "2004-12-01T18:47:31Z")

</div>

Hi, ive just used the actionscript from the follow tutorial

[http://www.kirupa.com/developer/mx/followease.htm](http://www.kirupa.com/developer/mx/followease.htm)

here’s the code ive used:

onClipEvent (load) {  
\_x = 0;  
\_y = 0;  
speed = 5;  
}  
onClipEvent (enterFrame) {  
endX = \_root.\_xmouse;  
endY = \_root.\_ymouse;  
\_x += (endX-\_x)/speed;  
\_y += (endY-\_y)/speed;  
}

How can i reverse it so that the movieclip moves the opposite direction from my mouse pointer?
