#attack punish code
3 messages · Page 1 of 1 (latest)
So in your code before the hitbox is created, check if the player is hit/stunned and cancel the attack if they are
3 messages · Page 1 of 1 (latest)
Im trying to make it to where if a player does an attack with a slow animation and he is hit before his hitbox appears his attack gets canceled.
I can't really describe it well but it's like what happens in untitled boxing game where you can counter their attack with a faster one.
So in your code before the hitbox is created, check if the player is hit/stunned and cancel the attack if they are