# Very nooby moving bullet question

**URL:** <https://forum.kirupa.com/t/very-nooby-moving-bullet-question/272453>\
**Category:** Uncategorized\
**Created:** [October 5, 2008, 2:11pm UTC](https://forum.kirupa.com/t/very-nooby-moving-bullet-question/272453 "2008-10-05T14:11:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sam\_vickery](https://avatars.discourse-cdn.com/v4/letter/s/a88e4f/32.png) [@sam\_vickery](https://forum.kirupa.com/u/sam_vickery)\
**Post date:** [October 5, 2008, 2:11pm UTC](https://forum.kirupa.com/t/very-nooby-moving-bullet-question/272453/1 "2008-10-05T14:11:22Z")

</div>

ok all I want to do is make a character that shoots bullets.  
I can attach the bullet but it stays still.  
someone please help as i have tried everything  
here is the code I used

```auto
 
 
shoot = true;
bulletcount = 0;
_root.onEnterFrame = function() {
 if (Key.isDown(Key.SPACE) && shoot == true) {
  currentbullet = attachMovie("bullet", "bullet"+bulletcount, bulletcount);
  currentbullet._x = _root.char._x;
  currentbullet._y = _root.char._y;
  bulletcount++;
  shoot = false;
 }
 if (Key.isDown(Key.SPACE)) {
  spaceup = false;
 } else {
  spaceup = true;
 }
 if (spaceup) {
  shoot = true;
 }
};

```

thanks in advance
