# Mouse follow question

**URL:** https://forum.kirupa.com/t/mouse-follow-question/63199
**Category:** flash
**Created:** [September 3, 2004, 7:36pm UTC](https://forum.kirupa.com/t/mouse-follow-question/63199 "2004-09-03T19:36:11Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Casenote](https://avatars.discourse-cdn.com/v4/letter/c/82dd89/32.png) [@Casenote](https://forum.kirupa.com/u/Casenote)
#### Post date: [September 3, 2004, 7:36pm UTC](https://forum.kirupa.com/t/mouse-follow-question/63199/1 "2004-09-03T19:36:11Z")

</div>

Hello all,

I have a question regarding mouse following/easing…

I want a MC to follow the mouse for only like a 25 pixel radius, and then return to it’s original position. How do I do this?

Thanks,  
Case

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 3, 2004, 9:21pm UTC](https://forum.kirupa.com/t/mouse-follow-question/63199/2 "2004-09-03T21:21:35Z")

</div>

simple way:  
make a circle of 25 pixels in radius, call it "circle"  
call the movie clip that is following the mouse “mfollow”

then just do a hitTest() of mfollow with circle.  
If the hitTest() is true, have mfollow follow the mouse  
if the hitTest() returns false, have the mouse go back to it’s original  
location

–Patrick

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 3, 2004, 10:08pm UTC](https://forum.kirupa.com/t/mouse-follow-question/63199/3 "2004-09-03T22:08:01Z")

</div>

Thanks, Phantom :chinaman:

I was wondering if you can be more specific code wise…  
I am a dunce.

Case 🅱
