# Mouse Follow question

**URL:** <https://forum.kirupa.com/t/mouse-follow-question/150335>\
**Category:** flash\
**Created:** [June 6, 2005, 9:23pm UTC](https://forum.kirupa.com/t/mouse-follow-question/150335 "2005-06-06T21:23:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bcfan](https://avatars.discourse-cdn.com/v4/letter/b/9d8465/32.png) [@bcfan](https://forum.kirupa.com/u/bcfan)\
**Post date:** [June 6, 2005, 9:23pm UTC](https://forum.kirupa.com/t/mouse-follow-question/150335/1 "2005-06-06T21:23:04Z")

</div>

Hi,

I want to make a MC/button follow the mouse on the x axis… I used this tutorial:

[http://www.flashkit.com/tutorials/Actionscripting/Basic/Making\_a-Alexande-735/more2.php](http://www.flashkit.com/tutorials/Actionscripting/Basic/Making_a-Alexande-735/more2.php) (ignoring the y axis script)

but the problem is when I attach this action script to more than one button/MC they all line up where the mouse is… is there a way with this script to have more than one button slow down/stop to the location of the mouse so it doesn’t line up with another button? so it’s more staggered.

Thanks,
