1 Reply Latest reply on Apr 7, 2007 4:35 AM by sindresorhus

    hitTest problem

    sindresorhus
      Hi, I'm really thankful for the help I've gotten in this forum.
      Now I need your genius brains again.

      I'm making a flash game with levels. In every level there is a door with the code:

      onClipEvent (enterFrame) {
      if (this.hitTest(_root.player)) {
      _root.gotoAndStop("level2");
      }
      }


      I have a score system with the Var called "points"

      How can I make the door only accept the player when it has 20 points?

      You can see the game here
      http://www.mofle.net/game/