I'm making a "alien shooter" game where you shoot aliens with guns
But the bullet line (yellow line showing where bullet goes),when diagonal will attack the enemy even if its not actually going over the enemy.
My brother told me to use a vector but flash help isn't even giving me crap and hitTest is still screwing me over...
Could someone change this to a vector(?).

onClipEvent(enterFrame){
if (_root.player.body.hitTest(this.body)){
this.health=this.health-_root.damage
}
}
thanks