How do I implement a basic combo system

I want to make a basic melee combo system so that if you press a button multiple times the combo progresses to the next animation but will start over after x amount of presses or if you dont press the button and the last animation ended? I only use blueprint so I need to know the blueprint side.

I’ve looked at the documentation but I’ve never done code before so I know how somethings work but some things on the documentation is too vague for a newbie like me to understand. And I dont understand how to make my character punch and move at the same time without blending in montage.

You don’t need to know or write any code to do any of those things. I recommend checking out tutorials on youtube instead of checking the documentation. The documentation is useful as a reference, but can be extremely obtuse, especially when you’re getting started.

I want to do that too… Please Help!

Look into Animation Blueprints. Also a good series to watch: Animation Blueprint Punching Setup in UE4. There you learn how you connect an Animation Blueprint and variables in your character, which you then can use to decide about combo resets and build a state machine.

You could actually use the animation blueprint to build the combo system.

OR you go cheap and use variables to keep states of your combo system and reset them using timers, which are triggered by button presses (pressing the button again simply resets the timer, therefore it wont stop as long as the button is pressed repeatedly). However, that will quickly get messy if you have multiple combos and it won’t match animations very good.

appendix to the cheap solution: instead of timers you could store the time of the last button press and compare it to the now to decide if the combo timeout is over or not. certainly less messy than timers.

Ok i do anything, my character do 2 anims play in random if i click on my left button of my mouse!


and in my animgraph

I use a Multigate for randoming my action (don’t forget “Loop”) and i use custom event like that every anim is replicated for multiplayer.

Worked with little tweaking… for melee sword combo system… thanks for incite