# Help with firing game sample

**URL:** https://forum.kirupa.com/t/help-with-firing-game-sample/92946
**Category:** Uncategorized
**Created:** [October 23, 2003, 5:35pm UTC](https://forum.kirupa.com/t/help-with-firing-game-sample/92946 "2003-10-23T17:35:42Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![kitchie](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kitchie/32/103_2.png) [@kitchie](https://forum.kirupa.com/u/kitchie)
#### Post date: [October 23, 2003, 5:35pm UTC](https://forum.kirupa.com/t/help-with-firing-game-sample/92946/1 "2003-10-23T17:35:42Z")

</div>

hey i tried using the scripts in the firing game sample located:  
[http://www.kirupa.com/developer/mx/fire.htm](http://www.kirupa.com/developer/mx/fire.htm)

in this game, you have to click to fire. but i need to fire using the keys. i already tried using

if (Key.isDown(Key.SPACE)) {

–instead of

on (release)

it fires but it doesn’t duplicate. please help me with the code.  
tnx!!!
