# Sniping game

**URL:** https://forum.kirupa.com/t/sniping-game/253763
**Category:** flash
**Created:** [March 4, 2008, 9:57pm UTC](https://forum.kirupa.com/t/sniping-game/253763 "2008-03-04T21:57:29Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![awscherb](https://avatars.discourse-cdn.com/v4/letter/a/b5ac83/32.png) [@awscherb](https://forum.kirupa.com/u/awscherb)
#### Post date: [March 4, 2008, 9:57pm UTC](https://forum.kirupa.com/t/sniping-game/253763/1 "2008-03-04T21:57:29Z")

</div>

ok, so i am creating a sniping game, and everything is going well so far. one problem is, you can shoot your target regardless of whether you are reloading. i made it so when you fire, a variable is set to true. after the firing and reloading sequence is finished, that variable is set to false. how can i make it so you can only kill your target when the variable is false?

edit: the guy you are trying to kill is a button, not a movie clip, because that was the only way i could make it so when you should hit, the animation goes to the next frame.
