What is the exact difference between mc1.hitTest(mc2) and mc1.hitTest(mc2._x,mc2._y,true)
What is the exact difference between mc1.hitTest(mc2) and mc1.hitTest(mc2._x,mc2._y,true)
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The first one just uses bounding rectangles to determine a hit, while the second, uses the shape/contour of an object to determine if the other is within (hits it) or not.
Regarding a way to ‘detect a collision which will occur in the future’, if the velocity of your object is constant, you should be able to.
Seb Lee-Delisle has two interesting posts on this:
HTH