Hi,
If the movie clips are circular, you may be faster using your own
maths...
Hit test will see if a point is in a clip, but you only want to see
if 2 circles are touching.
Jobe Makar's book Macromedia Flash MX Game Design Demystified gives
this solution - called "Circle to Circle detection.
To summarise:
It you have circle_1 and circle_2
distance from circle_1 to circle_2 centre is found with Pythagoras.
Math.sqrt( x * x + y * y)
If distance <= (circle_1.radius - circle_2.radius) (the circles are
touching / overlapping)
Hope this helps.
Glen
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com