I'm making a shooting game and the hero has it's weapons. The hero itslef adds his weapons by doing, for example, hero.addChild(pistol);
That's what I want, so when the hero moves the weapon moves with him. That's ok, the problem is that when I make, for example, someObject.hitTestObject(hero); it checks for both the hero and the weapon. I want the checking to be only with the hero. How can I do it?