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**