0 Replies Latest reply on Jun 25, 2006 2:38 AM by Sterockicy

    Wait action

    Sterockicy
      I have a game with a crosshair. you guessed its a shooter. and im trying to add a Wait action so it doesnt shoot while the guns reloading and i dont know how.

      The crosshairs a MC and it has the following actions:

      onClipEvent (enterFrame) {
      startDrag(this, true);
      Mouse.hide();
      }
      onClipEvent (mouseDown) {
      if (_root.bullet == true) {
      this.gotoAndPlay(2);
      _root.bullet = false;
      tellTarget (_parent.bullet) {
      gotoAndStop(2);
      }
      }
      }

      it has 42 frames of reloading and the frame rate is 25. im not sure if this is needed to fix the prob but its best to give you 2 much than not enough. so what do i need to do so that on those 42 frames it wont allow it to shoot the guy because of it reloading

      Thanks

      Sterockicy