hitTest problem (go figure)
alright, alright. I figured instead of starting a new thread, i would just post here, since my problem is a hitTest problem.
I printed David Doull's tutorial here in Flashkit on making a spaceship side scroller. I went through it a few months ago, and got the game to work....for the most part. But i lost the files and decided to redo it. Here is my problem:
I have the baddies coded to hitTest for the "spaceship". If so, then the movie goes to frame 3 "gameOver".
that didn't work. So, i put the hitTest on the spaceship to test against the enemy. That didn't work.
I even tried changing the gotoAndStop from "gameOver" to frame number 3. Still, no dice. And this worked before! Maybe its a stupid mistake im overlooking? here is my code:
Code:
//enemy test for spaceship
if(this.hitTest(_root.spaceship)){
_root.gotoAndStop("gameOver");
}
Code:
//spaceship test for enemy
if(this.hitTest(_root["enemy"+i])){
_root.gotoAndStop("gameOver");
}
I know this code is right. They are both under onClipEvent(enterFrame) actions. But it still doesn't work!
Furthermore, i know that all the movie clips are named properly in the code, and the frame label is not misspelled....i quadruple checked all of this!!