if(_this.hitTest(_root.player._x,_roo t.player._y,true)){
trace("That was a shapeflag hitTest, it hitTests on the x inside your movieclip");
}
Yay for coding to you at 6 AM when I haven't slept yet, time to go finish my real coding on my game, good luck with the learning of AS, it's good stuff once you come to grasps with it.
Thanks a lot, and good luck with [whatever you're doing] too! I've tried probably 6-10 variations on the basic hit test, yet nothing worked. Might as well keep trying!
Matt-Porter
How does one code without hitTest?!
if(this.hitTest(_root.nameOfObejct)){
_root.shitHappens=true;
}
if(_root.taco.hitTest(_root.player)){
woot();
}
if(_this.hitTest(_root.player._x,_roo t.player._y,true)){
trace("That was a shapeflag hitTest, it hitTests on the x inside your movieclip");
}
Yay for coding to you at 6 AM when I haven't slept yet, time to go finish my real coding on my game, good luck with the learning of AS, it's good stuff once you come to grasps with it.
Christicle
Thanks a lot, and good luck with [whatever you're doing] too! I've tried probably 6-10 variations on the basic hit test, yet nothing worked. Might as well keep trying!