0 Replies Latest reply on Feb 27, 2008 2:54 PM by fox3763

    hit test problems

    fox3763
      i am trying to make a game when a bat hits cartmen and when he gets hit his face gets more red with every hit. his face is in a separate mc and each frame it gets more red



      // stops the timeline
      stop();

      //hide the mouse and attach hand to mouse
      Mouse.hide();
      startDrag("bat_mc", true);
      //on hit cartmens face gets more red
      if (bat_mc.hitTest(cartmen_mc)) {
      cartmen_mc.gotoAndStop("red_1");
      }

      bat_mc.onRelease = function(){
      bat_mc.gotoAndPlay("hit");


      }