# Moving mc towards the move slowly towards the mouse

**URL:** https://forum.kirupa.com/t/moving-mc-towards-the-move-slowly-towards-the-mouse/80469
**Category:** Uncategorized
**Created:** [February 22, 2005, 1:29pm UTC](https://forum.kirupa.com/t/moving-mc-towards-the-move-slowly-towards-the-mouse/80469 "2005-02-22T13:29:02Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![orangelightblub](https://avatars.discourse-cdn.com/v4/letter/o/a587f6/32.png) [@orangelightblub](https://forum.kirupa.com/u/orangelightblub)
#### Post date: [February 22, 2005, 1:29pm UTC](https://forum.kirupa.com/t/moving-mc-towards-the-move-slowly-towards-the-mouse/80469/1 "2005-02-22T13:29:02Z")

</div>

Hiya newbie here

I just want to know how to move a movieclip towards the mouse slowly.

i have used this code to get the mc to the mouse, but i am stuck on how i make it move slowly towards it.  
please help  
thanks

onClipEvent(enterFrame){

this.\_x = \_root.\_xmouse;  
this.\_y = \_root.\_ymouse;  
}
