as3 hitTestObject() to hit all
问题 In my game I have person who shoots and I need if the bullet hit somthing to delete the sprite. var i = 1; var f:Function; addChild(bullet); bullet.addEventListener(Event.ENTER_FRAME, f = function(){ bullet.x += movex*i; bullet.y += movey*i; i++; }); How to make hitTestObject() with everything? 回答1: There are a bunch of techniques for collision detection, however, the method to use depends on the target object's shape. Pixel perfect hittesting is the most accurate collision detection method,