# More Gam help

**URL:** https://forum.kirupa.com/t/more-gam-help/45766
**Category:** Uncategorized
**Created:** [March 17, 2004, 10:37pm UTC](https://forum.kirupa.com/t/more-gam-help/45766 "2004-03-17T22:37:10Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Zak](https://avatars.discourse-cdn.com/v4/letter/z/8e7dd6/32.png) [@Zak](https://forum.kirupa.com/u/Zak)
#### Post date: [March 17, 2004, 10:37pm UTC](https://forum.kirupa.com/t/more-gam-help/45766/1 "2004-03-17T22:37:10Z")

</div>

**ok this is my AS for tank(instance name: crab)**

onClipEvent (enterFrame) {  
if(Key.isDown(Key.RIGHT)){  
this.\_x += 5;  
}  
else if(Key.isDown(Key.LEFT)){  
this.\_x -= 5;  
}  
else if(Key.isDown(Key.SPACE)){  
\_root.fire = 1;  
\_root.i += 1;  
duplicateMovieClip(\_root.bullet, “bullet”+i, i);  
}  
}

**And this is the AS for the “bullet” (instance name bullet)**

onClipEvent (load) {  
this.\_visible = 0;  
if (\_root.fire == 1) {  
this.\_x = \_root.crab.\_x;  
this.\_y = \_root.crab.\_y;  
}  
}  
onClipEvent (enterFrame) {  
if (this != \_level0.bullet) {  
if (\_root.fire == 1) {  
this.\_y -= 5;  
this.\_visible = 1;  
}  
if (this.\_y\<0) {  
this.removeMovieClip();  
}  
}  
}

\*\* But now my only problem is that it will not duplicate the movie clip and i have that AS in there, whenever i try to shoot again it erases the old one and just shoots a new one, any help at all, attached below it the file\*\*
