N
N00BL1NK300
Guest
this code for some reason makes the character stop in the same animation of attack for the enterity of the time, i still haven´t implemanted a combo sistem, but i guess you could help me with that as well
if (key_attk = 1 && canAttack == 0) {// you can add a "blocker variable" to block the player attacking so fast like "&& canAttack = 1" and put "canAttack = 0;" in the code bracket under this line. And you set canAttack = 1 in Animation End Event to reset that
canAttack = 1
sprite_index = sprErikAttack1 //change this if you need
instance_create( (x+distancex), (y+distancey), objSword )
if(canAttack = 1) {
delay += 1
if(delay > 1) {
canAttack = 0
delay = 0
}
}
}
if (key_attk = 1 && canAttack == 0) {// you can add a "blocker variable" to block the player attacking so fast like "&& canAttack = 1" and put "canAttack = 0;" in the code bracket under this line. And you set canAttack = 1 in Animation End Event to reset that
canAttack = 1
sprite_index = sprErikAttack1 //change this if you need
instance_create( (x+distancex), (y+distancey), objSword )
if(canAttack = 1) {
delay += 1
if(delay > 1) {
canAttack = 0
delay = 0
}
}
}