Help with HitTest
- amartainment
-
amartainment
- Member since: Mar. 8, 2009
- Offline.
-
- Forum Stats
- Member
- Level 04
- Blank Slate
Hey NG userz,
I needed some help for hitTest. Its not very accurate, in my game too, it shows mission failed sometimes when therez no 'actual' contact. Is there any replacement? or any way to solve it? Please help me.
~Amar
- flaminggranny
-
flaminggranny
- Member since: Sep. 12, 2008
- Offline.
-
- Forum Stats
- Member
- Level 10
- Blank Slate
Look into hitTestPoint. It's way more accurate.
- Denvish
-
Denvish
- Member since: Apr. 25, 2003
- Offline.
-
- Send Private Message
- Browse All Posts (15,977)
- Block
-
- Forum Stats
- Member
- Level 46
- Blank Slate
At 3/8/09 02:06 PM, amartainment wrote: Hey NG userz,
I needed some help for hitTest. Its not very accurate, in my game too, it shows mission failed sometimes when therez no 'actual' contact. Is there any replacement? or any way to solve it? Please help me.
~Amar
You could go for having an internal, invisible Movieclip inside which you use for the hitTest.
Or, you could use shapeflag hitTesting - see
AS: Collision Detection by BleeBlap
AS: Collisions - HitTesting Duped MCs by SpamBurger
AS: Collisions - Move To Contact by Tela_Ferrum
Or, you could scrap hitTesting and go for trigonometry
- amartainment
-
amartainment
- Member since: Mar. 8, 2009
- Offline.
-
- Forum Stats
- Member
- Level 04
- Blank Slate
Thank you! Thanx a lot!!! It really helped me!



