# Space Shooting Game

**URL:** https://forum.kirupa.com/t/space-shooting-game/17045
**Category:** flash
**Created:** [March 31, 2003, 8:16pm UTC](https://forum.kirupa.com/t/space-shooting-game/17045 "2003-03-31T20:16:50Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Harsh133](https://avatars.discourse-cdn.com/v4/letter/h/b38774/32.png) [@Harsh133](https://forum.kirupa.com/u/Harsh133)
#### Post date: [March 31, 2003, 8:16pm UTC](https://forum.kirupa.com/t/space-shooting-game/17045/1 "2003-03-31T20:16:50Z")

</div>

I have sucsessfully created a ship that shoots and an enemy that moves at the ship. The problem I have is when the the bullet that is shot hits the enemy, the enemy wont explode and/or disapear. If anybody could help me with this, please tell me! Thanks a lot!!!

---

<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: [March 31, 2003, 8:18pm UTC](https://forum.kirupa.com/t/space-shooting-game/17045/2 "2003-03-31T20:18:05Z")

</div>

you’re footer needs to be smaller champ. 300 width by 60 height. check out this thread for the footer rules: [http://www.kirupaforum.com/forums/showthread.php?s=&threadid=12](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=12)

---

<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: [March 31, 2003, 8:18pm UTC](https://forum.kirupa.com/t/space-shooting-game/17045/3 "2003-03-31T20:18:40Z")

</div>

oh, and check out ‘hitTest()’ there is a tutorial on this site somewhere… try the search feature at the top of the page…

---

<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: [March 31, 2003, 8:25pm UTC](https://forum.kirupa.com/t/space-shooting-game/17045/4 "2003-03-31T20:25:36Z")

</div>

[http://www.kirupa.com/developer/actionscript/hittest.htm](http://www.kirupa.com/developer/actionscript/hittest.htm)

---

<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 1, 2003, 12:59am UTC](https://forum.kirupa.com/t/space-shooting-game/17045/5 "2003-04-01T00:59:05Z")

</div>

[AS]  
// Place this in your enemy ship actions

if(this.hitTest(\_root.bullet.\_x, \_root.bullet.\_y, TRUE)  
{  
this.gotoAndPlay(“explosion”);  
}  
[/AS]

There ya go champion 🙂

playamarz :player:
