One delay for two events

Hi, Im new to Unreal Engine. I am actually making a 2D game, and I want to add Dash feature to the game. My blueprint looks like this


I want there to be a delay between dash right and dash left. How can I do that?

Hey @glupiakaczka! Welcome to the forums!

So instead of your “Do Once” nodes, try using a bool!

Make an IsDashing bool and use a branch right after your input action, if IsDashing is true, do nothing, and if IsDashing is False:
"Set IsDashing: True,
launch,
delay 2.0,
then “Set IsDashing: False” and end the line.

This way you can’t dash if you’re already dashing, and it’ll reset the dash after 2 seconds :slight_smile:

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.