Okay, I think this should work. I added two global variables, TapThreshold and AttackTriggered. Basically the way it works is when the touch starts intouchtimer starts going up. If the player releases the touch before the timer exceeds the TapThreshold (currently set at 10 frames) then a jump is triggered. Every frame it checks to see if the intouchtimer has gone over the TapThreshold and if it has then an attack happens, even if they haven't finished their touch.