Key input down then play event not working


I’m new to unreal and need some help with my character blueprint. I’m creating a mobile game and would like the player to jump when the screen is tapped once, jump higher when the screen is tapped twice and launch an attack when the screen is held for 2 seconds. I’ve managed to figure out the first 2 functions but can’t get the hold attack to work. I’ve tried various things and looked extensively online but I just can’t get it to work.

Please help,


Hey there, you need to store into a variable how long the tap has been pressed, so when you press it store the game time, and when you release make the difference between the current time and the stored time, if they are greater or equal to 2 seconds then do the attack, if not process the jumping logic.