# Setting Boundries

**URL:** <https://forum.kirupa.com/t/setting-boundries/121622>\
**Category:** Uncategorized\
**Created:** [September 4, 2004, 6:53pm UTC](https://forum.kirupa.com/t/setting-boundries/121622 "2004-09-04T18:53:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BlackFire](https://avatars.discourse-cdn.com/v4/letter/b/a5b964/32.png) [@BlackFire](https://forum.kirupa.com/u/BlackFire)\
**Post date:** [September 4, 2004, 6:53pm UTC](https://forum.kirupa.com/t/setting-boundries/121622/1 "2004-09-04T18:53:39Z")

</div>

Does anyone know how to set boundries on a slow chase mouse follower. Attached is the fla im trying to set boundries to. The ball should not go past the red lines.

I have used the following code:

```auto
 
onClipEvent (load) {
_y = 0;
speed = 5;
}
onClipEvent (enterFrame) {
endY = _root._ymouse-200;
_y += (endY-_y)/speed;
}

```

-BlackFireMD :beard:
