Hi!
I wanna do an air charge attack with bp anim. When i pressed Q, hold attack and when i released do it.
Hi @Untalmarian, there are many ways to make a charge attack and I’ll try to explain how to make a simple one.
- Find an key your want to use and off of the Pressed input, you want to find a node called “Set Timer by Event” and set the time to however long you want the player to hold the input before they able to perform a charged attack.
- Next make an custom event and name it whatever you’d like and plug this custom event into the “Set Timer by Event” node. Off of this custom event you want to make a boolean variable that set it to true. This variable will indicate if you can perform a charge attack or not.
- Now off of the Released input (from your key), you want to make a branch with the boolean variable you just made as the condition. If the condition is true you want to set the boolean to false and perform your charged attack. If the condition is false you want to find the “Reset Timer by Function” node and enter the custom event name into the argument and set the boolean to false as a precaution.
And just like that you made yourself a simple charge attack system. There are better ways to approach this and betters way to do it. You can do some exploring and find some new ways on creating a charged attack.
Hope this helps & best of luck!