# How to keep a MC a certain distance from the mouse cursor regardless of angle?

**URL:** <https://forum.kirupa.com/t/how-to-keep-a-mc-a-certain-distance-from-the-mouse-cursor-regardless-of-angle/322945>\
**Category:** flash\
**Created:** [June 9, 2011, 9:59pm UTC](https://forum.kirupa.com/t/how-to-keep-a-mc-a-certain-distance-from-the-mouse-cursor-regardless-of-angle/322945 "2011-06-09T21:59:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rotaercz](https://avatars.discourse-cdn.com/v4/letter/r/7feea3/32.png) [@rotaercz](https://forum.kirupa.com/u/rotaercz)\
**Post date:** [June 9, 2011, 9:59pm UTC](https://forum.kirupa.com/t/how-to-keep-a-mc-a-certain-distance-from-the-mouse-cursor-regardless-of-angle/322945/1 "2011-06-09T21:59:43Z")

</div>

How to keep a MC a certain distance from the mouse cursor regardless of angle?

Can anyone provide me some code? I tried Googling but no luck. ☹
