In this tutorial, we're going to learn how to create basic AS3 collision detection using the AS3 hitTestObject() method of the MovieClip class. Collision detection refers to the process of checking whether 2 or more objects are hitting each other - if
function mouseUpHandler(evt:MouseEvent):void { var obj = evt.target; // obj.dropTarget will give us the reference to the shape of // the object over which we dropped the circle.
I have been following the discussion of hitTestObject vs hitTestPoint vs custom hitTest for quite some time. Often I have gone down the route of using Point, given the shape option. However - I am now trying to do a hit test of a bullet hitting a circular
Post a Comment:
Showing 0 Comments: