# Great tutorial; two attacks?

**URL:** https://forum.kirupa.com/t/great-tutorial-two-attacks/270346
**Category:** programming
**Created:** [September 9, 2008, 2:01am UTC](https://forum.kirupa.com/t/great-tutorial-two-attacks/270346 "2008-09-09T02:01:39Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![inkwellmagickit](https://avatars.discourse-cdn.com/v4/letter/i/9fc29f/32.png) [@inkwellmagickit](https://forum.kirupa.com/u/inkwellmagickit)
#### Post date: [September 9, 2008, 2:01am UTC](https://forum.kirupa.com/t/great-tutorial-two-attacks/270346/1 "2008-09-09T02:01:39Z")

</div>

Hello all,

In trying to get a better handle on Actionscript, I’ve been looking at various tutorials on creating a fighting game. Most tutorials are rather uninformative/poorly written, but there is one that seems to work quite well:

[http://www.gotoandplay.it/\_articles/2006/06/beatemup.php](http://www.gotoandplay.it/_articles/2006/06/beatemup.php)

I’m having one large problem, however - I can’t make my protagonist do more than one attack. For instance, I would like to have the character throw a punch when hitting control, and a kick while hitting shift. But based on the way the code is set up, it seems that I can only have one attack as specified in the tutorial; everything else I try simply causes the character to freeze on the first frame of attack #2.

So, experienced Actionscriptors, would anyone have an idea of what I should do? I realize the answer is probably obvious, but as a novice, I’d appreciate a detailed answer. Thanks very much in advance!
