# Mouse follow \_x,\_y limits

**URL:** <https://forum.kirupa.com/t/mouse-follow--x--y-limits/37999>\
**Category:** Uncategorized\
**Created:** [December 17, 2003, 2:30am UTC](https://forum.kirupa.com/t/mouse-follow--x--y-limits/37999 "2003-12-17T02:30:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hognav2t](https://avatars.discourse-cdn.com/v4/letter/h/eb8c5e/32.png) [@hognav2t](https://forum.kirupa.com/u/hognav2t)\
**Post date:** [December 17, 2003, 2:30am UTC](https://forum.kirupa.com/t/mouse-follow--x--y-limits/37999/1 "2003-12-17T02:30:18Z")

</div>

im totally new here. Hi !~~

heres my prob:

u know how, with startDrag u can specify left, top, rgt, bottom

values to restrict the mouse movement?

well, i wanna do the same to a mouse follower,…

any ideas?

im usin this code:

\_root.follower.\_x+=(\_root.\_xmouse-\_x)\*.3

thnx tons,

hog.
