# Mc chasing mouse

**URL:** <https://forum.kirupa.com/t/mc-chasing-mouse/88460>\
**Category:** Uncategorized\
**Created:** [April 29, 2005, 12:24pm UTC](https://forum.kirupa.com/t/mc-chasing-mouse/88460 "2005-04-29T12:24:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![momochi\_zabuza](https://avatars.discourse-cdn.com/v4/letter/m/b9e5f3/32.png) [@momochi\_zabuza](https://forum.kirupa.com/u/momochi_zabuza)\
**Post date:** [April 29, 2005, 12:24pm UTC](https://forum.kirupa.com/t/mc-chasing-mouse/88460/1 "2005-04-29T12:24:51Z")

</div>

## how to make mc chasing mouse in a smoother way? coz i did mine and it was not smooth enough here is the script applied

## stop(); speed = 18; function moveChaser() { if (chaser.\_x\<\_root.\_xmouse-speed) { chaser.\_x += speed; } else if (chaser.\_x\>\_root.\_xmouse+speed) { chaser.\_x -= speed; } if (chaser.\_y\<\_root.\_ymouse-speed) { chaser.\_y += speed; } else if (chaser.\_y\>\_root.\_ymouse+speed) { chaser.\_y -= speed; } };

if i increase the speed it will moving so fast that will not any movement… if the speed slow is decreased the speed will be slow… either way… i want my mc that following mouse pointer is smooth…  
so how can i fix this problem? thanks i advance
