# Rotates to point at mouse?

**URL:** https://forum.kirupa.com/t/rotates-to-point-at-mouse/65869
**Category:** flash
**Created:** [September 30, 2004, 6:25am UTC](https://forum.kirupa.com/t/rotates-to-point-at-mouse/65869 "2004-09-30T06:25:25Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![ben\_is\_sparky](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ben_is_sparky/32/664_2.png) [@ben\_is\_sparky](https://forum.kirupa.com/u/ben_is_sparky)
#### Post date: [September 30, 2004, 6:25am UTC](https://forum.kirupa.com/t/rotates-to-point-at-mouse/65869/1 "2004-09-30T06:25:25Z")

</div>

I was jusat sitting there one day and suddenly thought:

“I need to make a movieclip point towards the mouse!”

I have no particular reason to do this but I thought it would be interesting.

Could you set the rotation according to the mouses y position maybe?

Thanks

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [October 3, 2004, 6:49am UTC](https://forum.kirupa.com/t/rotates-to-point-at-mouse/65869/2 "2004-10-03T06:49:25Z")

</div>

anyone?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [October 3, 2004, 6:54am UTC](https://forum.kirupa.com/t/rotates-to-point-at-mouse/65869/3 "2004-10-03T06:54:16Z")

</div>

There is an open source example at [moock.org](http://moock.org)  
Check this link, [http://moock.org/asdg/codedepot/](http://moock.org/asdg/codedepot/) , and look towards the bottom in the section “motion \> follow the leader”

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [October 3, 2004, 6:57am UTC](https://forum.kirupa.com/t/rotates-to-point-at-mouse/65869/4 "2004-10-03T06:57:19Z")

</div>

thanks, I’ll look @ it now

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [October 3, 2004, 11:34am UTC](https://forum.kirupa.com/t/rotates-to-point-at-mouse/65869/5 "2004-10-03T11:34:54Z")

</div>

Senocular also has a file like this I think … browse through the FMX files section on his site: [http://www.senocular.com](http://www.senocular.com)

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [October 3, 2004, 11:53am UTC](https://forum.kirupa.com/t/rotates-to-point-at-mouse/65869/6 "2004-10-03T11:53:39Z")

</div>

[http://www.actionscript.org/tutorials/advanced/Mouse\_Angle\_Detection\_II/index.shtml](http://www.actionscript.org/tutorials/advanced/Mouse_Angle_Detection_II/index.shtml)

tadaaaa 😃

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [October 3, 2004, 2:26pm UTC](https://forum.kirupa.com/t/rotates-to-point-at-mouse/65869/7 "2004-10-03T14:26:21Z")

</div>

Thanks everyone

soon i wiil know trig and this wiil make sense… i hope…

thank you!

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [October 3, 2004, 3:14pm UTC](https://forum.kirupa.com/t/rotates-to-point-at-mouse/65869/8 "2004-10-03T15:14:30Z")

</div>

one voets may be thinking of is:  
[http://www.senocular.com/downloads/index.php?subaction=showfull&id=1074710585&ucat=1&kind=1](http://www.senocular.com/downloads/index.php?subaction=showfull&id=1074710585&ucat=1&kind=1)
