# Attacks in video game?

**URL:** https://forum.kirupa.com/t/attacks-in-video-game/250883
**Category:** programming
**Created:** [February 2, 2008, 8:46pm UTC](https://forum.kirupa.com/t/attacks-in-video-game/250883 "2008-02-02T20:46:37Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![RogueProgram](https://avatars.discourse-cdn.com/v4/letter/r/ba9def/32.png) [@RogueProgram](https://forum.kirupa.com/u/RogueProgram)
#### Post date: [February 2, 2008, 8:46pm UTC](https://forum.kirupa.com/t/attacks-in-video-game/250883/1 "2008-02-02T20:46:37Z")

</div>

I’m contnuing on the game i did on flash and im trying to make the guy attack when i press spacebar. wat i did was for the guy 's walking anim i double cllicked on the movieclip and edited the frames so every time he walks it animates, and for the attack anim i made a new layer and made a attacking anim on it but when i play the game the guy wont attack when i press spacebar but when i move around it plays both the walking and attack anim at once. and i dont know wat to do.  
help plz
