# Shooting Game

**URL:** <https://forum.kirupa.com/t/shooting-game/184027>\
**Category:** programming\
**Created:** [April 1, 2006, 3:49am UTC](https://forum.kirupa.com/t/shooting-game/184027 "2006-04-01T03:49:20Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![darc10222](https://avatars.discourse-cdn.com/v4/letter/d/bb73d2/32.png) [@darc10222](https://forum.kirupa.com/u/darc10222)\
**Post date:** [April 1, 2006, 3:49am UTC](https://forum.kirupa.com/t/shooting-game/184027/1 "2006-04-01T03:49:20Z")

</div>

I am attempting to make a shooting/action game.  
One of the things I need to know is how to get the arm with the gun to rotate around. And then when its at a certain angle to change the head to the opposite angle it was on before. Its a bit hard to explain.  
What I really need is something like Ultimate Down ([http://www.freeonlinegames.com/play/3179.html](http://www.freeonlinegames.com/play/3179.html)).  
And I need some starters on AI.  
Thanks in Advance =)

---

<div class="post-metadata">

**Author:** ![habes](https://avatars.discourse-cdn.com/v4/letter/h/e5b9ba/32.png) [@habes](https://forum.kirupa.com/u/habes)\
**Post date:** [April 1, 2006, 6:17am UTC](https://forum.kirupa.com/t/shooting-game/184027/2 "2006-04-01T06:17:20Z")

</div>

> [@darc10222](#):
>
> I am attempting to make a shooting/action game.
> 
> What I really need is something like Ultimate Down ( One of the things I need to know is how to get the arm with the gun to rotate around. And then when its at a certain angle to change the head to the opposite angle it was on before. Its a bit hard to explain.[URL=“[http://www.freeonlinegames.com/play/3179.html)](http://www.freeonlinegames.com/play/3179.html%29)”]

I need some help on this topic as well. Ive come across so stuff on it but I need someone to provide me with an explanation as I got a little bit lost.

To clear up what darc was asking:

-Arm rotates according to users mouse  
-When it is far enough back (i.e. past the head) the figure flips to face the other way

ll post a swf of what i have so far, tell me if you want to see an fla  
Im using mx

---

<div class="post-metadata">

**Author:** ![darc10222](https://avatars.discourse-cdn.com/v4/letter/d/bb73d2/32.png) [@darc10222](https://forum.kirupa.com/u/darc10222)\
**Post date:** [April 1, 2006, 7:35am UTC](https://forum.kirupa.com/t/shooting-game/184027/3 "2006-04-01T07:35:49Z")

</div>

Cool. Thats what I need. I also need a like… Line? Shooting out of the gun. Instead of just clicking on the enemy its like a hitTest with the line to see if it hits the enemy.

---

<div class="post-metadata">

**Author:** ![habes](https://avatars.discourse-cdn.com/v4/letter/h/e5b9ba/32.png) [@habes](https://forum.kirupa.com/u/habes)\
**Post date:** [April 1, 2006, 8:00am UTC](https://forum.kirupa.com/t/shooting-game/184027/4 "2006-04-01T08:00:46Z")

</div>

> [@darc10222](#):
>
> Cool. Thats what I need. I also need a like… Line? Shooting out of the gun. Instead of just clicking on the enemy its like a hitTest with the line to see if it hits the enemy.

Ok, Ill try and post something like that tomorrow unless someone else wants to 😛

---

<div class="post-metadata">

**Author:** ![darc10222](https://avatars.discourse-cdn.com/v4/letter/d/bb73d2/32.png) [@darc10222](https://forum.kirupa.com/u/darc10222)\
**Post date:** [April 5, 2006, 10:36am UTC](https://forum.kirupa.com/t/shooting-game/184027/5 "2006-04-05T10:36:34Z")

</div>

Bump. Could someone please help?

---

<div class="post-metadata">

**Author:** ![hybrid101](https://avatars.discourse-cdn.com/v4/letter/h/7993a0/32.png) [@hybrid101](https://forum.kirupa.com/u/hybrid101)\
**Post date:** [April 5, 2006, 11:39am UTC](https://forum.kirupa.com/t/shooting-game/184027/6 "2006-04-05T11:39:30Z")

</div>

[http://actionscript.org/tutorials/intermediate/Game\_with\_laser/index.shtml](http://actionscript.org/tutorials/intermediate/Game_with_laser/index.shtml)  
i think that might help with the firing part:)

---

<div class="post-metadata">

**Author:** ![habes](https://avatars.discourse-cdn.com/v4/letter/h/e5b9ba/32.png) [@habes](https://forum.kirupa.com/u/habes)\
**Post date:** [April 6, 2006, 2:58am UTC](https://forum.kirupa.com/t/shooting-game/184027/7 "2006-04-06T02:58:44Z")

</div>

sorry, totaly forgot to post the new fla.  
i made it so you shoot bullets now instead of clicking on them.  
have fun, sorry i had to zip it

---

<div class="post-metadata">

**Author:** ![darc10222](https://avatars.discourse-cdn.com/v4/letter/d/bb73d2/32.png) [@darc10222](https://forum.kirupa.com/u/darc10222)\
**Post date:** [April 7, 2006, 2:17pm UTC](https://forum.kirupa.com/t/shooting-game/184027/8 "2006-04-07T14:17:20Z")

</div>

Thanks Ill look at the code in a bit. The only thing is that the bullet comes out of the sleeve not the gun. But I think I can fix that.
