So I'm making a fighting game, and I have it to where when the
player attacks, the variable for which the attack is set doesn't
set to off, until the animation is finished (i.e. On P
Pressed set punch to 1, On Punch = 1 set animation to
Punch, On animation "Punch" is finished, set variable
Punch to 0). The problem is, when I press another
attack button while the punch animation is playing, it is
interrupted by which ever animation is pertaining to the
button, then the punch animation will finish playing
afterwards. My idea is to make it to where while the
punch/various attack animation is playing (or while said
variable is true) it cannot be interrupted by another
attack/command. Thanks in advance.
m.youtube.com/watch