# Shooting gallary gun

**URL:** <https://forum.kirupa.com/t/shooting-gallary-gun/179185>\
**Category:** Uncategorized\
**Created:** [February 17, 2006, 12:54pm UTC](https://forum.kirupa.com/t/shooting-gallary-gun/179185 "2006-02-17T12:54:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tattered](https://avatars.discourse-cdn.com/v4/letter/t/b9e5f3/32.png) [@Tattered](https://forum.kirupa.com/u/Tattered)\
**Post date:** [February 17, 2006, 12:54pm UTC](https://forum.kirupa.com/t/shooting-gallary-gun/179185/1 "2006-02-17T12:54:19Z")

</div>

Hi I am trying to make a shooting gallary, and everthing works fine. I just want to add one thing and that would be a gun, on the bottom of the screen. I wanted to know how you can move the top of the gun around. just moving it in angels.

---

<div class="post-metadata">

**Author:** ![brighteyes](https://avatars.discourse-cdn.com/v4/letter/b/2acd7d/32.png) [@brighteyes](https://forum.kirupa.com/u/brighteyes)\
**Post date:** [March 18, 2006, 11:19pm UTC](https://forum.kirupa.com/t/shooting-gallary-gun/179185/2 "2006-03-18T23:19:54Z")

</div>

is it angles like this?  
If so you could use Math.atan2

```auto

onClipEvent (enterFrame) {
	this._rotation = Math.atan2(this._y-_root._ymouse, this._x-_root._xmouse)/(Math.PI/180)-90;
}

```
