i’ve created a game by going through a set of tutorials on flashkit.com but that game is too simple. i’m trying to make the enemies shoot back at me but everything i have tried has failed. if anyone can help me, please do.
now i’m trying to make powerups but i’m trying to use a hitTest and it’s not working.
my code looks like this and is in the powerup:
onClipEvent (enterFrame) {
if (this.hitTest(_root.spaceship)) {
_root.laser.gotoAndPlay(2);
this.removeMovieClip
}
}
put a frame label in the first frame of the scene you want to go to and then target that frame lable. i.e. use taco for your frame label;
if (this.hitTest(_root.spaceship)) {
_root.gotoAndPlay(“taco”);
}
Adam