Be a Supporter!

Help with HitTest

  • 232 Views
  • 3 Replies
New Topic Respond to this Topic
amartainment
amartainment
  • Member since: Mar. 8, 2009
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
Help with HitTest 2009-03-08 14:06:39 Reply

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
Response to Help with HitTest 2009-03-08 14:21:39 Reply

Look into hitTestPoint. It's way more accurate.


BBS Signature
Denvish
Denvish
  • Member since: Apr. 25, 2003
  • Offline.
Forum Stats
Member
Level 46
Blank Slate
Response to Help with HitTest 2009-03-08 14:21:34 Reply

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


- - Flash - Music - Images - -

BBS Signature
amartainment
amartainment
  • Member since: Mar. 8, 2009
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
Response to Help with HitTest 2009-03-08 14:33:35 Reply

Thank you! Thanx a lot!!! It really helped me!