# First Person Shooter

**URL:** <https://forum.kirupa.com/t/first-person-shooter/19499>\
**Category:** programming\
**Created:** [April 28, 2003, 7:05pm UTC](https://forum.kirupa.com/t/first-person-shooter/19499 "2003-04-28T19:05:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![YAF\_Serge](https://avatars.discourse-cdn.com/v4/letter/y/3bc359/32.png) [@YAF\_Serge](https://forum.kirupa.com/u/YAF_Serge)\
**Post date:** [April 28, 2003, 7:05pm UTC](https://forum.kirupa.com/t/first-person-shooter/19499/1 "2003-04-28T19:05:10Z")

</div>

I am making a first person shooter and I have a serious problem. I am trying to recreate a Time Crisis like game in flash and am puzzled about the crouch behind function. I want to use the (spacebar) as a way to duck out of enemy site and reload automatically. Then on release the character will return to his position in enemy fire and will then be allowed to shoot again. Any suggestions/sample code would be appreciated. 😃

---

<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 28, 2003, 9:06pm UTC](https://forum.kirupa.com/t/first-person-shooter/19499/2 "2003-04-28T21:06:21Z")

</div>

```auto

if(Key.isDown(Key.SPACE)){
	reload();
	stance("duck");
} else {
	stance("walk");
}

```

or something ?
