i have made this code:
onClipEvent(enterFrame){
var attack = 90;
if(Key.isDown(attack)){
this.gotoAndPlay("attack");
}
so if i press the z-key it does the attack move, but if i press it again it does nothing. If i move and then pres the z-key it works again. Why do i need to move before i can do it again and how can i fix it?
tx, Niels