# Space shooter game

**URL:** https://forum.kirupa.com/t/space-shooter-game/41578
**Category:** programming
**Created:** [January 30, 2004, 8:04pm UTC](https://forum.kirupa.com/t/space-shooter-game/41578 "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/41578/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 4, 2004, 7:36pm UTC](https://forum.kirupa.com/t/space-shooter-game/41578/2 "2004-02-04T19:36:55Z")

</div>

Well, my only problem is that i can’t make my enemies fire at me. i want to keep it horizontal, but i can’t figure out how to make them shoot.

---

<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 4, 2004, 10:48pm UTC](https://forum.kirupa.com/t/space-shooter-game/41578/3 "2004-02-04T22:48:26Z")

</div>

If you downloaded the fla, you’ll see the green enemy ship(instance name - enemythree) and two different lasers (instance names - enemylaserone and enemylasertwo) These are the three objects that contain the scripts you need to be concerned with. The script on the enemythree ship makes the plane fly how it needs to and also duplicates the laser instances to make sure that they don’t just fire once, but continuously. The speed of the duplicated lasers are controlled in the actionscript on the ship, but the initial speed is set in the actionscript on the lasers themselves, along with the getProperty that gets the \_x and \_y values of the ship and then the setProperty which sets the laser to the match the ships values. Have a look at these three instances and I’m sure you’ll be able to figure it out. Let me know if you need more explanation.

Adam
