# Making a shooting game

**URL:** <https://forum.kirupa.com/t/making-a-shooting-game/216557>\
**Category:** flash\
**Created:** [February 18, 2007, 2:15am UTC](https://forum.kirupa.com/t/making-a-shooting-game/216557 "2007-02-18T02:15:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sora72](https://avatars.discourse-cdn.com/v4/letter/s/a4c791/32.png) [@sora72](https://forum.kirupa.com/u/sora72)\
**Post date:** [February 18, 2007, 2:15am UTC](https://forum.kirupa.com/t/making-a-shooting-game/216557/1 "2007-02-18T02:15:10Z")

</div>

Hi,  
I’m making a shooting game where you play as a man with a gun and the view is an eagle-eye view (you can only see the man’s head). The gun has 8 angles (up, down, left, right and diagonals) and the ‘bullet’ which I want the gun to shoot is a straight line. I made it so the bullet is the same angle as the gun, but what I can’t do is make it move in the right way i want it to move (ex. Move up when the gun is pointing up). Is there a code for this? Thanks!
