3 Replies Latest reply on May 3, 2011 2:52 PM by Ned Murphy

    Hit test timer

    shmopster

      I am building a game.

       

      there is a timer that counts down from 60

       

      the main chracter is a diver who has to swim to the other end of the cave, but the diver needs to collect 'oxegen icons' in order to not run out of air.

       

      i am able to make the icon dissapear when the diver swims over it with a Hittest. How do I add more time on to the 'timer' on the same hit test? thanks

       

      onClipEvent (enterFrame){
          if(this,hitTest(_root.man)){
              _root.oxgn.gotoAndPlay(10)
          }
      }