Okay, I've asked a similar question before, but I'm looking for a little help YET AGAIN....
_root.player.playerattack.hit has to hit _root.enemy
I've tried a bunch of stuff, but nothing worked. At the moment I have
onClipEvent(enterFrame) {
if(this.hitTest(_root.enemy._x, _root.enemy._y, true)) {
_root.enemyhealth -= Math.round(Math.random()*5);
}
}
Why won't this work? All the instance names are correct, and I've substituted the enemyhealth for a trace to test and the trace won't work either. Any ideas?