Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

How to keep playing an event while holding touch

alt text

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

Product Version: UE 4.11
more ▼

asked Apr 06 '16 at 05:34 PM in Blueprint Scripting

avatar image

1 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

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.

alt text

tick on bool.png (53.1 kB)
more ▼

answered Apr 06 '16 at 10:45 PM

avatar image

1.8k 65 27 89

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

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. alt text

touch-control.png (194.1 kB)
more ▼

answered Mar 18 '19 at 08:38 PM

avatar image

30 2 5 5

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question