Is there a "Wait for Sprite to Done playing" node or something similar?

Hello guys. I’m relatively new in studying/making games in Unreal Engine and I have ran into a bit of a problem. I was making a 2D platformer game and while I was making the Dash part for the character, I couldn’t get the animation to play as the walking + idle animation kept overwriting it.

Is there a way to make the code wait for 2D flipbook to finish playing before continuing on? Perhaps there’s a node for it and I cannot find it?

I’m using the Enumeration for separating each actions by the way.

Any help would be appreciated, thanks guys :slight_smile:

This is my event ticks for updating stuff

This is my Dash blueprint

This is my Walking blueprint

You are setting current player state to idle in event tick.

As Dejan33 said, you’re setting state back to idle every tick, which would explain why the anim is cancelling.

AFAIK, there is no native play to finish sprite command, but if you set the flipbook to a dash anim in the dash event, you could probably use the GetFlipbookLength node to set a timer event for changing back to idle (or just set timer length manually to desired time).

Or just get the PaperZD plugin. With that you can make anim blueprints with state machines and such like the standard 3rd person template chars.