# Actionscript 2 shooting

**URL:** https://forum.kirupa.com/t/actionscript-2-shooting/313002
**Category:** Uncategorized
**Created:** [August 17, 2010, 11:19pm UTC](https://forum.kirupa.com/t/actionscript-2-shooting/313002 "2010-08-17T23:19:57Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![pizzadude223](https://avatars.discourse-cdn.com/v4/letter/p/e95f7d/32.png) [@pizzadude223](https://forum.kirupa.com/u/pizzadude223)
#### Post date: [August 17, 2010, 11:19pm UTC](https://forum.kirupa.com/t/actionscript-2-shooting/313002/1 "2010-08-17T23:19:57Z")

</div>

I tried this to make a thing called bullet spawn, then move, but it never spawns. Heres my code:

if (Key.isDown(Key.UP)) {  
attachMovie(“bullet”, “bullets”, 1);  
bullets.\_x = player.\_x + 20;  
bullets.\_y = player.\_y - 10;  
}  
function updateBullet() {  
bullets.\_x += 2;  
}  
updateBullet();

Thanks for the help.
