Weapons :)

alright i have a question. im creating a sidescroller game. and i took a tutorial at flash kit. for shooting and stuff like that here is the script

in gun…///////

onClipEvent (load) {
moveSpeed = 10;
_root.bullet._visible = false;
laserCounter = 1;
}
onClipEvent (enterFrame) {
if(Key.isDown(Key.SPACE)){
laserCounter++;
_root.laser.duplicateMovieClip(“laser”+1, laserCounter);
_root[“laser”+laserCounter]._visible = true;
_root.ammo = _root.ammo-1;
}
if (Key.isDown(Key.RIGHT)) {
this._x += moveSpeed;
} else if (Key.isDown(Key.LEFT)) {
this._x -= moveSpeed;
}
if (Key.isDown(Key.DOWN)) {
this._y += moveSpeed;
} else if (Key.isDown(Key.UP)) {
this._y -= moveSpeed;
}
}

in bullet…////

onClipEvent (load) {

laserMoveSpeed=20;
this._x=_root.mgun._x+90;
this._y=_root.mgun._y;

}

onClipEvent (enterFrame) {

this._x+=laserMoveSpeed;
if (this._x>550){
this.removeMovieClip();
}

}

now here is the real problem i want to make it so only one bullet can come at a time. because now it just keeps coming out. so could someone lead me in the right direction. like to a tutorial on a website. ot just teach me how on the forums

thanks in advance:)

hey, i used the code, works great, i changed to to make the bullet shoot up from a gun. But im having some hittest problems, heres the fla if u can help:
www.nickelsfornerds.com/munckin.fla