ForumsProgramming ForumAbout nested movieClips colision detection

0 2833
herofmb
offline
herofmb
30 posts
Nomad

Hello, I have a doubt about nesting movieClips.

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?

Thanks.

  • 0 Replies
Showing 1-0 of 0