8 Replies Latest reply on Oct 13, 2008 9:39 AM by kglad

    HitTest from all directions? PLZ REALLY REALLY CONFUSED NOW...

      Ok so I made this guy and and the terrain and a house. On the house I put this code on it:

      onClipEvent (enterFrame) {
      if (this.hitTest(_root.Hero)) {
      _root.Hero._y += 7;

      When he hits the house from the front he stops. but when he goes from the side of it he moves down till he isnt hitting the house anymore... I can't figure out how to do it were it reads if your coming from the right left or up, and then it does the _root.Hero._y += 7; depending on which side he's on changing the _y to _x etc. If you have any questions just ask!

      Koolaz Games