A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: flash hitTests are inaccurate any ways around this?

  1. #1
    Wait- what now? tidenburg's Avatar
    Join Date
    Dec 2005
    Posts
    1,471

    flash hitTests are inaccurate any ways around this?

    As you may know flash hitTests are terrible for round objects as the 'collision' is only measures by a bounding box or collision! is there anyway to make this more precise?

    Ive seen games like mousehunter and when i was playing it, i was interested how the explosion's hitTest was not counted by the bounding box but by the circle itself, how would i achieve that effect?
    "I'd only told them the truth. Was that so selfish? Our integrity sells for so little, but it is all we really have. It is the very last inch of us, but within that inch, we are free."

  2. #2
    2D/3D Artist & Programmer Dominicaninja's Avatar
    Join Date
    Jun 2005
    Location
    NY
    Posts
    157
    From the Knowledgebase:
    http://www.flashkit.com/board/showth...0&pagenumber=1

    Check out the Knowledgebase whenever you have a question. Lots of times someone else has had the same problem as you. Good luck!
    If only we could be as productive as we are imaginative...

  3. #3
    Script kiddie VENGEANCE MX's Avatar
    Join Date
    Jun 2004
    Location
    England
    Posts
    2,590
    http://www.harveycartel.org/metanet/tutorials.html

    Read 'em.

    Also, the explosion collision in mouse hunter could've been done with hitTest, all you have to do is enable the shapeFlag parameter. However, it's more likely that they just checked the distance between the cursor and the centre of the explosion and checked if it was less than the explosion's radius.
    Last edited by VENGEANCE MX; 03-15-2006 at 05:41 PM. Reason: Replaced the word 'property' with 'parameter' :P
    http://www.birchlabs.co.uk/
    You know you want to.

  4. #4
    Patron Saint of Beatings WilloughbyJackson's Avatar
    Join Date
    Nov 2000
    Location
    Ro-cha-cha-cha, New York
    Posts
    1,988

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center