# Preventing mouse clicks in a shooting game (ie reloading)

**URL:** https://forum.kirupa.com/t/preventing-mouse-clicks-in-a-shooting-game-ie-reloading/2528
**Category:** flash
**Created:** [March 21, 2002, 12:43pm UTC](https://forum.kirupa.com/t/preventing-mouse-clicks-in-a-shooting-game-ie-reloading/2528 "2002-03-21T12:43:03Z")
**Posts on this page:** 4
**Page:** 1

<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 21, 2002, 12:43pm UTC](https://forum.kirupa.com/t/preventing-mouse-clicks-in-a-shooting-game-ie-reloading/2528/1 "2002-03-21T12:43:03Z")

</div>

Or if I want to adjust a rate of fire so if I “shoot”, I have to wait a certain amount of time before I can “shoot” again…

Can anyone explain how to?

---

<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 21, 2002, 5:02pm UTC](https://forum.kirupa.com/t/preventing-mouse-clicks-in-a-shooting-game-ie-reloading/2528/2 "2002-03-21T17:02:05Z")

</div>

if you want just one shot active at a time, check it’s \_y (supposing the “bullet”-clip goes upwards) and set a falg to false as long as the \_y has not reached 0 (top of scene), then set it to true , and before you allow for shoot, check the flag variables value to see if true (= new shoot) or false (= not yet).  
Does that answer your question?

---

<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 21, 2002, 6:38pm UTC](https://forum.kirupa.com/t/preventing-mouse-clicks-in-a-shooting-game-ie-reloading/2528/3 "2002-03-21T18:38:05Z")

</div>

I’m not sure you understood what I ment exactly…

Lets say it’s a FPS (First Person Shooter) game and my weapon is a shotgun… Now after every shot There’s this @#%$ animation. How can I prevent the user from shooting while the animation plays?

---

<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 21, 2002, 6:39pm UTC](https://forum.kirupa.com/t/preventing-mouse-clicks-in-a-shooting-game-ie-reloading/2528/4 "2002-03-21T18:39:31Z")

</div>

Dam\*\* \*_n… EZboard censored that word…  
I ment c_ \*ock.
