How to keep playing an event while holding touch
My problem is I want to have an event keep playing while I keep touching my screen. OnInputTouchBegin makes it only play once. How can I make it so It will keep firing up the string while I hold down touch? Thanks
asked Apr 06 '16 at 05:34 PM in Blueprint Scripting
One way to do this is to set a boolean true on press, and to set it false on release.
Then use the event tick to do you action based on that boolean.
Hope this helps.
answered Apr 06 '16 at 10:45 PM
I have been looking around today how to set up my controller because the input was been automatically released for some reason and I could not understand why.
To answer your question I am sharing with you a blueprint I am using at the moment, which I think is better because you are not calling the function at every tick but on a set time.
Also, I was only able to get rid of the autorelease glitch when I changed the interaction mode of the button to NOT be focused - *Click Method*Precise Click and *Touch Method*Down and UP
Hope this works for you.
answered Mar 18 '19 at 08:38 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here