Shooting Game

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).
And I need some starters on AI.
Thanks in Advance =)

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

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 :stuck_out_tongue:

Bump. Could someone please help?

http://actionscript.org/tutorials/intermediate/Game_with_laser/index.shtml
i think that might help with the firing part:)

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

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.