# Mouse Follow with Easing

**URL:** <https://forum.kirupa.com/t/mouse-follow-with-easing/113323>\
**Category:** Uncategorized\
**Created:** [June 16, 2004, 10:48pm UTC](https://forum.kirupa.com/t/mouse-follow-with-easing/113323 "2004-06-16T22:48:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Recognize](https://avatars.discourse-cdn.com/v4/letter/r/a5b964/32.png) [@Recognize](https://forum.kirupa.com/u/Recognize)\
**Post date:** [June 16, 2004, 10:48pm UTC](https://forum.kirupa.com/t/mouse-follow-with-easing/113323/1 "2004-06-16T22:48:25Z")

</div>

hello,

Right I followed this tutorial [mouse follow](http://www.kirupa.com/developer/mx/followease.htm) and its wot am looking for but the thing I want to do is that I only want the dot to move up & down (which i done) but only to a certain amount?

e.g.

if i got a box, i only want the dot to move up & down in side the box area and not to go out side that area.

Can ne one help me with this?

I attached the fla. to show where abouts I am at the mo.

---

<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:** [June 16, 2004, 11:52pm UTC](https://forum.kirupa.com/t/mouse-follow-with-easing/113323/2 "2004-06-16T23:52:25Z")

</div>

```auto
if(_root._ymouse>150 || _root._ymouse <50){
sumVariable = false
}
else{
sumVariable = true
}

```

and just put an

```auto
if(sumVariable == true){
}

```

statement around the rest of your code…

sumit like that shuld work…

Prophet.
