Hi guys, such problem. I have a hero for my game, so I have platform movement object. My hero has movements on the right and left and jump. So I added 2 sword attack but I can't do this right. I tried Upon pressing a key and attack animation plays at once very fast, so I tried Repeat while key is pressing and while I'm pressing on the button attack animation plays even when hero's moving and animation continues to play.
What I need when I pressed on the button at once animation will plays one time one second, or when I pressed on the button repeating animation will play on loop while I hol the button.