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"

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,


alt text

Product Version: Not Selected
more ▼

asked Dec 20 '17 at 02:50 PM in Blueprint Scripting

avatar image


(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

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.

more ▼

answered Dec 20 '17 at 02:53 PM

avatar image

5.9k 152 126 299

(comments are locked)
10|2000 characters needed characters left
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