HitTest?!?PlzHelp

whats wrong with this?
It wont work!

plz It will be wery nice, plz my code is
onClipEvent (enterFrame) {
if (this.hitTest(_root.Test1)) {
trace(“Jippi”);
}
}

or, is the code working on your comp?

It’s because in the HitTest, you have it checking if the circle is hitting “Test1”, while the mc you’re trying to hit is named “test1”. It doesn’t look like it would make a difference, but it is case sensitive, so inside the code on the cirlce, change the code to this…


onClipEvent (enterFrame) {
 if (this.hitTest(_root.test1)) {
  trace("Jippi");
 }
}

yep

Thanks, thanks, thanks, thanks and thanks!!!
but why are this code not so nice?
onClipEvent (enterFrame) {
if (this.hitTest(_root.bomb1)) {
gotoAndPlay(“GameOver”, 1);

}

}

the gotoandplay is the problem, but why?

but why does this don’t work? plz help!!!

onClipEvent (enterFrame) {
if (this.hitTest(_root.bomb1)) {
gotoAndPlay("GameOver", 1);
}
}

[LEFT]onClipEvent (enterFrame) {
  if (this.hitTest(_root.bomb1)) {
    gotoAndPlay("GameOver", 1);
  }
}

I have no idea why you have a 1 after the name of the frame you want to gotoAndPlay. If anything, try this…


[LEFT]onClipEvent (enterFrame) {
  if (this.hitTest(_root.bomb1)) {
    gotoAndStop("GameOver");
  }
}

and make sure the case of the name of the frame is GameOver, EXACTLY like you have it in the code - Chris[/LEFT]
[/LEFT]

It din’t work. plz can you try to fix it on this file, it would be very nice:panda: