How to i add melee animation to Blueprint?

Hi there,

I have a issue with getting my attack animation right when i press the input button. I have tried many options but nothing seems to work. But i’am stuck on this for days…

I added pics of what my blueprint looks like.

e061b56e9c7b8d10e9dd3957a787781dcaa34d16.jpeg

My question is how do i implement my attack animation, so that when i press the shift/input button the character stands still and does the attack animation, (animation continues even if button is released) and when the animation is finished goes to idle or run/jump according to which button is pressed?

Pic below shows the animation i need to add to my blueprint.

second image below shows a solution i tried with adding a attack variable. It worked but not the way it should: Attack animation fired as soon as i play the game, continues even if another button is press but if another button is pressed the second time the attack animation stops and idle, run and jump work plays normally again.

Thanks in advance.

Bump. Still need help

I’m only really familiar with doing this type of thing in 3D… But should you really be doing all that from the character controller? Is there not some equivalent of the AnimBlueprint for 2D games which handles things like this…?

Here’s a start to finish video tutorial series on adding a character, movement, controls, animation blending, and melee attacks -

I don’t know. I use sprites and flipbook to make my animation, and in the character controller i can control the animations.

The video only shows how third person tutorial though. I don’t think i can use my sprites in the 3d animblueprint.