How come this code "works":
onEnterFrame = function(){
if(player.hitTest(_root.ground)){
trace("hitting");
}
}
and these don't:
onEnterFrame = function(){
if(player.hitTest(_root.ground._x, _root.ground._y, true)){
trace("hitting");
}
}
onEnterFrame = function(){
if(player.hitTest(_root.ground._x, _root.ground._y, false)){
trace("hitting");
}
}
WTF? I'd use the first one, but that registers hitTests with the bounding box, not the actual shape.
What's wrong?