hitTestPoint not recognizing full shape
Hey guys, thanks in advance for help. Anyone know why "hitTestPoint(character.x, character,y, true)" would be hit testing off the origin point in the center of the character, and not the whole shape??
This is my code from my document class. There's a custom splat class in there, but don't worry about that. This code is inside 2(1 nested) for loops.
function hitTestBalls(e:Event) {
for (var i = ballArray.length - 1; i >= 0; i--) {
for (var m = MonsterArray.length - 1; m >= 0; m--) {
if ((ballArray.hitTestPoint(MonsterArray
trace("219");
var splat:Splat=new Splat(ballArray.currentFrame*10,ballArray.x,ballArray.y);
addChild(splat);
}
if (ballArray.hitTestObject(MonsterArray
trace("217");
if (ballArray.y>420) {
var splat2:Splat=new Splat(ballArray.currentFrame*10,ballArray.x,ballArray.y);
addChild(splat2);
}
ballArray.updateTimer.stop();
ballArray.updateTimer=null;
ballArray.parent.removeChild(ballArray);
ballArray.splice(i,1);
}
}
}
updateScore();
}