# Following the mouse direction

**URL:** <https://forum.kirupa.com/t/following-the-mouse-direction/233098>\
**Category:** programming\
**Created:** [July 20, 2007, 2:34am UTC](https://forum.kirupa.com/t/following-the-mouse-direction/233098 "2007-07-20T02:34:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![IntC](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@IntC](https://forum.kirupa.com/u/IntC)\
**Post date:** [July 20, 2007, 2:34am UTC](https://forum.kirupa.com/t/following-the-mouse-direction/233098/1 "2007-07-20T02:34:33Z")

</div>

Hey!

Working on a game, shooter. I’m stuck with characters head movement. The head of the character should be aimed in the same direction where the mouse is. It works, until i flip the body (xscale -100), then the rotation wont work anymore. I have set the rotation that way: it rotates only from 150 degrees to 190 degrees, and i want this range in the “other side” too.  
I have included a .fla, just click the buttons and drag the mouse in front of the face, and you will see my problem. So in conclusion: i want the face to follow the mouse direction in some range, and then too, when i flip the face.  
Hope you help soonC:-)
