0 Replies Latest reply on Jun 19, 2006 7:46 PM by Sterockicy

    Shooting Game Help!!

    Sterockicy
      i have a shooting game with a few problems. One, during the reload stage of the gun, you can still shoot. Two, once the man walks off screen it dosent go to a game over page. i have no idea how to fix this and all my attempts fail. I cant send you the game because the source file is to big even after cut down. ill give u the actionscript.

      The Walking Guy:

      onClipEvent (load) {
      speedx = 0.9;
      }
      onClipEvent (enterFrame) {
      this._x -= speedx;
      if (this._x<=100) {
      gotoAndStop("loose");
      }
      }
      on (release) {
      this.gotoAndPlay(2);
      this.enabled = false;
      speedx = 0
      }

      The man is inside a MC. i dont know how to make it so that when he walks off the screen it goes to a Game over page.


      The Crosshair:

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


      When nothing is hylighted:

      _root.bullet = true;
      stop();


      Inside the Crosshair MC:

      First Frame:

      Stop();


      Last Frame:

      tellTarget (_parent) {
      _root.bullet = true;
      }
      tellTarget (_parent.bulet) {
      gotoAndStop(1);
      }


      What needs to be added to not allow the gun to work when reloading???
      How do i create a game over page when the stick has walked off the screen??

      All answers would be greatly appreaciated!!!

      Thanks

      Sterockicy