How do I make my 2D character attack?

Thank you for this suggestion it’s been really helpful. In my blue print, the event ticker checks a Boolean named “Sword Swing” for its state and then selects the appropriate flipbook based on the result. I’ve added a delay for the attack duration and then unset the “Sword Swing” Boolean after completion.

  • Boolean value called Sword Swing added
  • Custom event called Attack_Sword added which selects the attack sprint flipbook if it’s called.
  • InputAction Attack sets the “Sword Swing” to true for a duration of 0.3seconds and then set it to false.
  • Event Tick checks the “Sword Swing” Boolean and if it’s true, calls the “Attack Sword” event, if false, the normal idle animation will resume.
1 Like