# Rotate towards mouse w/ boundaries and reflection

**URL:** https://forum.kirupa.com/t/rotate-towards-mouse-w-boundaries-and-reflection/92703
**Category:** Uncategorized
**Created:** [October 20, 2003, 9:11pm UTC](https://forum.kirupa.com/t/rotate-towards-mouse-w-boundaries-and-reflection/92703 "2003-10-20T21:11:08Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![scorpio\_rising](https://avatars.discourse-cdn.com/v4/letter/s/258eb7/32.png) [@scorpio\_rising](https://forum.kirupa.com/u/scorpio_rising)
#### Post date: [October 20, 2003, 9:11pm UTC](https://forum.kirupa.com/t/rotate-towards-mouse-w-boundaries-and-reflection/92703/1 "2003-10-20T21:11:08Z")

</div>

Hi there…

I’m using the code ‘rotate towards the mouse’ from [http://moock.org/asdg/codedepot/](http://moock.org/asdg/codedepot/)

It works fine to rotate the clip, but there’s two things I’d like to have happen here:

1. At a certain angle of rotation, the MC that is following the mouse reflects horizontally. example: a profile of a head is following the mouse. i don’t want the head to be upside down when the mouse reaches the back of the head, but rather the head flips over to watch the mouse.

2. Boundaries: is there some way to set up the code so that the MC stops following the mouse when it reaches a certain position on the Y-axis?

I hope this is clear. Thanks for any help that can be provided.

I’m using Flash MX or MX 2k4, whichever is more convenient for this project.
