Learn how to implement 2D Sprite based combat using Paper 2D in this tutorial
https://dev.epicgames.com/community/learning/tutorials/18Dr/2d-melee-combat-in-unreal-engine-5
Thanks for sharing the 2D combat lesson. I noticed towards the end you did a camera shake was that programmatic ( a custom class) via the CameraShakeBase Blueprint, or does it involve using just the sequencer? Once again great contribution.
Thank you
I simply used CameraShakeBase and adjusted some values!
Hello , I watched your video , but not work.
Hey, can you please elaborate on what didn’t work?
Then I might be able to help out.
Thank you for your replay, I follow your step(blue print) , already make a character idle and run sprite , when I try to add combat sprite ,it not work, not thing show up. Could you please tell me why ? Thank you for your help.
Ok, I understand now.
Yeah when I made the video I had to choose between directly basing it of the 2d platformer project or making a new one just for the combat.
I choose making a new one that doesn’t involve movement, because I felt like completely basing it of the other one and making it a hard requirement would alienate many viewers that only want to know about combat.
To make the attack work together with the idle animation and movement you’ll have to make a few adjustments.
I believe the issue is most likely that the idle animation is overriding the attack instantly which is why it’s not showing up for you. In UpdateAnimation you’ll probably have to add a branch and ONLY switch back to idle when IsAttacking is false!
That way it should work out.
Thank you for your help , sorry for my late replay.
“To make the attack work together with the idle animation and movement you’ll have to make a few adjustments.
I believe the issue is most likely that the idle animation is overriding the attack instantly which is why it’s not showing up for you. In UpdateAnimation you’ll probably have to add a branch and ONLY switch back to idle when IsAttacking is false!”
Can you please show HOW to functionally do this? I’m still learning step by step and your videos have been a HUGE HELP thus far.