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"

Trouble with Context Sensitive Key bindings

Hey all,

So I'm having a problem setting up the control scheme for my game. I want the controls to be fairly simple with only two buttons for the gameplay. As such, I was hoping to set up a modifier key that you can hold down to get extra use out of the two main buttons. I've looked into setting up multiple key presses and most people say to use booleans but I don't think this will work in my case.

For my game the character is swimming. When you press the Left mouse Button it works their Left Arm moving them right, the Right Mouse works the Right arm moving you left, and pressing both at the same time will make both arms go moving you forward. The Modifier key is Reverse which makes you swim backward if you're holding it and both mouse buttons at the same time.

Here's my setup: alt text

So the problem as you can see, is that by using Booleans, it's registering as true for MULTIPLE events when I hold down Left Mouse, Right Mouse and the "Reverse or Modifier" key.

Also the issue with booleans is that if I'm holding Left and Right mouse to swim forward and then I just press the Reverse key too, it ignores the reverse command and I keep moving forward.

There has to be a better way to handle something like this but I'm not sure what it is.

Product Version: UE 4.19
Tags:
more ▼

asked May 17 '18 at 11:01 PM in Blueprint Scripting

avatar image

TorQueMoD
1.2k 86 116 146

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

0 answers: sort voted first
Be the first one to answer this question
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