Make something like this in my game

Hello, I want to ask how will I make something like this.
The game is named Heaven’s Arena by Hermano’s Literature Club

So basically, after the enemy was attacked, he while become stunned after a while, and then “dash out” allowing him to escape the player’s m1 combos.
And if you continue to punch him, nothing will happen, and you can continue your combo.

I’ve tried making something like this in my game, but he will instantly dash out on the 3rd of 4th punch.

If you’re wondering, the way I’m trying to make something like this is:

  • When the player attacks, the enemy will become stunned.
  • Wait 2 seconds.
  • Check if the player has the “Attacking” Bool Value off (it enables for 0.6 seconds when a player attacks), if the enemy is still stunned (bool), then it will dash out.

But for some reason, this doesn’t work.
When i try doing an m1 combo (4 punches), the enemy sometimes dashes out on the 3rd or 4th punch.

so is there a way to make it like the video?

1 Like