x

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. 

BUG REPORT: InputAction Press/Release too quickly

If you press and release a key too quickly (like a really, really quick tap; I think both the Press and Release commands must be triggered in the same frame?) the Release event doesn't seem to fire.

Using 4.7 Preview 6.

Product Version: Not Selected
Tags:
more ▼

asked Feb 18 '15 at 02:03 AM in Bug Reports

avatar image

RhythmScript
243 20 24 36

avatar image Adam Davis STAFF Feb 18 '15 at 07:36 PM

Hi RhythmScript,

Have you tried this on Preview 8? Additionally, what is the setup you are using for your press/release? I attempted this on my end but even when I got the press/release in the same frame both appeared without any errors.

avatar image RhythmScript Feb 18 '15 at 09:57 PM

Well, my setup is pressing Shift to dodge; doing so performs a bit of complex functionality (like 2 dozen nodes), amonf which is the setting of a Bool variable, "holding for dash" (basically, we check if you are still holding dodge when you land to see if you will then continue into a dash)

Releasing the key does far FEWER operations, including UNsetting "holding for dash".

What I have experienced is that if I tap-release the dodge key EXTREMELY quickly, I can reliably get the character to dash automatically even though the key is no longer held down.

I will check in Preview 8 to see if this persists; if it does, I'll also do a Printf check to make sure that the problem is the ORDER of the events rather than the Release action being skipped entirely.

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

1 answer: sort voted first

Sorry, this one was on my end. Basically I check to see if the user is pressing an arrow key when he hits shift, and as an edge-case handler I had special logic which checked if he pressed the arrow key just an instant AFTER pressing shift. This special case checker was feeding back into the original dodge logic too soon and would re-set te "is pressig dodge" bool, causing this problem to arise if the player pressed dodge, then released dodge, and then pressed an arrow key in a quick enough span of time in that order.

more ▼

answered Feb 19 '15 at 06:09 PM

avatar image

RhythmScript
243 20 24 36

(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