1 Reply Latest reply on Sep 26, 2010 11:02 PM by kglad

    hitTest goToAndPlay(2) Problem.

    iliveudie12345

      Ok, so when my character hits a certain object, I want it to play the movie. BUT since the hitTest is techincally always true if my character is just sitting on the object the entire time, it continuosly player frame #2.

       

      What is the simple fix for this? The code that will just play movie clip ONE TIME, and not restart continuosuly?

       

      MY CODE:

      onClipEvent(enterFrame){
      if(_root.char.hitTest(this)){
      _root.ground.fall.gotoAndPlay(2);
      }
      }