5 Replies Latest reply on Aug 10, 2007 7:36 PM by kglad

    hitTest help

    chuban007
      Here's my code-

      onClipEvent(enterFrame){
      if(_global.myRoot.player.hitTest(_global.myRoot.worm)){
      _global.myRoot.gotoAndPlay(5);
      }
      }

      I'm not allowed to use _root., so I used _global.myRoot in it's place ('_global.myRoot = this' on the time line). "Player" and "Worm" are both the instance names. Thanks in advance!