3 Replies Latest reply on Jun 14, 2009 2:55 PM by kglad

    Hittest with multiple objects...

    javageek1212

      Ok I need some help!

      I'm trying to make a room with a little guy and he moves around the issue is that HE CAN WALK THE WALL it's like Spiderman...

      I want to only have to use one object with the same root name, but I want it to be a hittest so it's like a wall here's my code...

        

        "if (_root.char.hittest(_root.wall)) {
              startX = startX+1;
              startY = endYstartY+1;
          }"

       

      I dont want to have to hard code like 20 walls for eace "wall" if you know what I mean...

      Oh and almost forgot char is a MC on the root also.

       

      -Java