I’m trying to create a combo system in which the character does a series of attack animations one after another , each triggered by pressing attack key at the right duration of time .
just for testing purposes i have made a 3 consecutive attacks and the duration of each attack is about 1.5 seconds . 1 second is the actuall attack animation and 0.5 second is the rest time in which the player should press the attack button again in order for the combo to continue and if not , combo will stop and character will return to idle animation .
So i have made my AnimMontage , and made sections for the each animation , added branch where i want to check if the player is going to press the attack key again .
my montage looks like this :
Here comes my question , now in the event graph , i want to check if attack key is pressed " anytime " within start of the branch point till the end of that section to perform the next attack , from my understanding , when playhead reaches branch point it triggers and event or perform a check etc .
How can i make it continually check if a key is pressed from where the playhead reaches branch point till the end of that section ?
in this pic, the areas i want to perform a continuous check is shown with red. thanks