# Shooting game help

**URL:** https://forum.kirupa.com/t/shooting-game-help/201034
**Category:** Uncategorized
**Created:** [September 18, 2006, 1:56am UTC](https://forum.kirupa.com/t/shooting-game-help/201034 "2006-09-18T01:56:22Z")
**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: [September 18, 2006, 1:56am UTC](https://forum.kirupa.com/t/shooting-game-help/201034/1 "2006-09-18T01:56:22Z")

</div>

Im making a game that uses clicking to shoot, and I made a movieclip called bullet1, and the player man. The code I used was:

onMouseDown = function() {  
attachMovie(Bullet,bullet1,depth++)  
\_bullet1.\_x = ( man.\_x - 60)  
\_bullet1.\_y = ( man.\_y )  
}

This doesn’t seem to work. What I am trying to do is when I click, a bullet appears, and it fires at the certain direction. I got the code down for the bullet moving but this simple part isnt working. Any help? (sorry if i wasnt precise enough)
