# AS3, MC follows mouse constant speed?

**URL:** <https://forum.kirupa.com/t/as3-mc-follows-mouse-constant-speed/319864>\
**Category:** flash\
**Created:** [March 7, 2011, 9:00am UTC](https://forum.kirupa.com/t/as3-mc-follows-mouse-constant-speed/319864 "2011-03-07T09:00:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kazenkoh](https://avatars.discourse-cdn.com/v4/letter/k/d2c977/32.png) [@kazenkoh](https://forum.kirupa.com/u/kazenkoh)\
**Post date:** [March 7, 2011, 9:00am UTC](https://forum.kirupa.com/t/as3-mc-follows-mouse-constant-speed/319864/1 "2011-03-07T09:00:53Z")

</div>

Hello, I am new for action-script, and I encountered a problem for making a simple game that character follow the mouse direction with constant speed.

and I found one of the thread from other forum is similar what I wanted, but it is action-script 2.0, and I don’t really understand the script.

here’s the thread that I mentioned:  
[http://www.actionscript.org/forums/showthread.php3?t=86675](http://www.actionscript.org/forums/showthread.php3?t=86675)

here’s the link of his outcome, and I wish I can make similar to this in AS3.0:  
[http://jdittmer.free.fr/test/test.htm](http://jdittmer.free.fr/test/test.htm)

thank you very much~
