Hi,
I’ve just a few questions to ask as im havin problems solving what should b a fairly simple task.
Is there any way to hitTest a MC that is on the main stage with another MC from the library? i want to have multiple instances of the same object but dont want to go around labeling every instance with the same name, and applying the hitTest function to every instance of this MC wouldb’t be wise.
I have a MC inside an other MC that i am trying to hitTest with a single moveable MC on the main stage. The code i am currently using is:
onClipEvent(enterFrame) {
if(this.hitTest(_root.bottom.sides)) {
this._x -= 10;
}
}
I have 2 MC’s within the “bottom” MC both labeled “sides” but when i run the **** thing it doesnt work. ive checked the syntax, instance names, the actual positions of the MC’s (to make sure the _root path is correct) and changed “this.hitTest” to “_root.player.hitTest” but still the bloody thing perplexes me.
After hours of careful consideration i decided to turn to the forums in hope of a useful tutorial or thread i could read but still, i am clueless.
Can anyone see any problems with the code? if u need more info ill upload the .fla so y’all can see.
Thanks 4 reading