# Space shooter game

**URL:** <https://forum.kirupa.com/t/space-shooter-game/100537>\
**Category:** Uncategorized\
**Created:** [January 30, 2004, 8:04pm UTC](https://forum.kirupa.com/t/space-shooter-game/100537 "2004-01-30T20:04:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Myctapeiro](https://avatars.discourse-cdn.com/v4/letter/m/779978/32.png) [@Myctapeiro](https://forum.kirupa.com/u/Myctapeiro)\
**Post date:** [January 30, 2004, 8:04pm UTC](https://forum.kirupa.com/t/space-shooter-game/100537/1 "2004-01-30T20:04:19Z")

</div>

i’ve created a game by going through a set of tutorials on [flashkit.com](http://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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 19, 2004, 8:04pm UTC](https://forum.kirupa.com/t/space-shooter-game/100537/2 "2004-02-19T20:04:24Z")

</div>

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  
}  
}

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 8, 2004, 4:56am UTC](https://forum.kirupa.com/t/space-shooter-game/100537/3 "2004-04-08T04:56:26Z")

</div>

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
