# Question about asteroids game

**URL:** https://forum.kirupa.com/t/question-about-asteroids-game/117748
**Category:** Uncategorized
**Created:** [July 29, 2004, 10:50pm UTC](https://forum.kirupa.com/t/question-about-asteroids-game/117748 "2004-07-29T22:50:25Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![TheOneAndOnly](https://avatars.discourse-cdn.com/v4/letter/t/3bc359/32.png) [@TheOneAndOnly](https://forum.kirupa.com/u/TheOneAndOnly)
#### Post date: [July 29, 2004, 10:50pm UTC](https://forum.kirupa.com/t/question-about-asteroids-game/117748/1 "2004-07-29T22:50:25Z")

</div>

Ok, first off here is the FLA

[click](http://www.flash-babies.com/uploads/Flashtroids.fla)

What i want to happen is to limit the bullets fired to 1 at a time (for example once you push shift and let go 1 bullet goes instead of like 100000)

also i want it so when you start the asteroids cant start ontop of you

and 1 last thing i want it so when you shoot 1 asteroid, another one appears off the screen and comes onto the screen.

thanks in advance for the help :thumb:

---

<div class="post-metadata">

### Author: ![bobdoe](https://avatars.discourse-cdn.com/v4/letter/b/51bf81/32.png) [@bobdoe](https://forum.kirupa.com/u/bobdoe)
#### Post date: [July 29, 2004, 11:38pm UTC](https://forum.kirupa.com/t/question-about-asteroids-game/117748/2 "2004-07-29T23:38:50Z")

</div>

Hey, to fix the starting point of the asteroids, put a hitTest inside the onClipEvent(load) part of the code for the asteroid. For example:  
onClipEvent(load){  
if(this.hitTest(\_root.ship)){  
trace(“big rock was on top of ship, get another starting point”);  
\_root.lives += 1; //add 1 to lives since it takes one off automatically  
}  
}

When I fire a bullet, only 1 bullet ocmes out, so im not sure which 10000 bullets u are referring to. Also, your many onClipEvent(enterFrame) code can all collapse into one onClipEvent.

---

<div class="post-metadata">

### Author: ![TheOneAndOnly](https://avatars.discourse-cdn.com/v4/letter/t/3bc359/32.png) [@TheOneAndOnly](https://forum.kirupa.com/u/TheOneAndOnly)
#### Post date: [July 30, 2004, 1:48am UTC](https://forum.kirupa.com/t/question-about-asteroids-game/117748/3 "2004-07-30T01:48:55Z")

</div>

i tried that just now, and if you start with an asteroid ontop of you then you cant die
