# Attacking frame problems

**URL:** https://forum.kirupa.com/t/attacking-frame-problems/241351
**Category:** Uncategorized
**Created:** [October 12, 2007, 2:04pm UTC](https://forum.kirupa.com/t/attacking-frame-problems/241351 "2007-10-12T14:04:16Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![leonthelion](https://avatars.discourse-cdn.com/v4/letter/l/58956e/32.png) [@leonthelion](https://forum.kirupa.com/u/leonthelion)
#### Post date: [October 12, 2007, 2:04pm UTC](https://forum.kirupa.com/t/attacking-frame-problems/241351/1 "2007-10-12T14:04:16Z")

</div>

need help with this, this is my code for going to the attack frame:

PHP Code:  
[LEFT][COLOR=#000000][COLOR=#0000bb][/COLOR][COLOR=#007700]if([/COLOR][COLOR=#0000bb]Key[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]isDown[/COLOR]COLOR=#007700){  
[/COLOR][COLOR=#0000bb]this[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]gotoAndPlay[/COLOR]COLOR=#007700  
}  
[/COLOR][COLOR=#0000bb][/COLOR][/COLOR][/LEFT]

When you press z it should play the attack frame but it freezes on the first frame. I attached the file.Also how do you make a delay between attacks?
