[CENTER][SIZE=6]HitTest[/SIZE][/CENTER]
[LEFT]
Hello!
I’we get a big problem and wondered if you could help me.:tb:
In the code something is wrong, it’s just don’t wont to work!:puzzle:
Here’s the code!
onClipEvent (enterFrame) {
if (this.hitTest(bomb)) {
gotoAndStop("GameOver", 1);
}
}
You need to target the correct path to both your bomb clip and your “Game Over” frame. Without knowing what those are I’ll just guess that it would be something like this.
onClipEvent (enterFrame) {
if (this.hitTest(_parent.bomb)) {
this.gotoAndStop("GameOver", 1);
}
}
Butman - please user better thread titles in the future: Titles like HitTest!!!Omg!HelpPlz!!!1111oneon isn’t really of much information to whoever reads it