1
$\begingroup$

Good Morning

I try to use the first and second modifier in the key sensor, but I can't find more information or examples of this, example

I try a simple combination in the pic but it does not work

S+SHIFT and/or S+CTRL

somebody can make a example of this, please

PLEASE IN LOGIC BRICKS thanks

**Key Sensor + First Modifuer** **what i more i need do?**

REFERENCE (Blender Game Engine) Walk and Run cycle sound problems

$\endgroup$
5
  • $\begingroup$ What exactly is not working as expected? $\endgroup$ Apr 29, 2018 at 17:28
  • $\begingroup$ You noticed that the second Key-Sensor isn't connected to the Controller? $\endgroup$ Apr 29, 2018 at 17:30
  • $\begingroup$ I want to use the S key to move forward and when you press SHIFT and S back up. yes, but I was not testing right and left so I do not bother to connect it, I concentrate on knowing what the hell then work First Modifier & Second Modifier $\endgroup$
    – user55877
    Apr 29, 2018 at 17:46
  • $\begingroup$ @Quacksilber sorry, correction i disconnect the 2nd sensor, to try make work de 4th sensor with S + SHIFT LEFT but i lost, not work with i connect the two sensor, maybe i need something to control wen you go forward and backward $\endgroup$
    – user55877
    Apr 29, 2018 at 17:50
  • $\begingroup$ I don't know, if I understood you correctly. Did you mean that if you press "s", it moves and if you then press "shift", the motion stops? This would be because both sensors would then be active at the same time and eliminate themselves. (0.10 + -0.10 = 0) $\endgroup$ Apr 30, 2018 at 16:57

1 Answer 1

1
$\begingroup$

The keyboard sensors allow to sense up to three keys being pressed at the same time.

It is the same behavior as three keyboard sensor's connected to a single AND controller.

There are some things to know about: - Keyboards can deal with 3 pressed keys -> but more keys might not sensed (this is an hardware/OS issue) - Keyboard sensors sensing one of the (already sensed) keys will still measure the single key press. It will not automatically ignore the single key because a modifier of another keyboard sensor is pressed.

Exclusive events

When you want to deal with + and differently you need to describe it explicitly:

  • AND
  • AND not

The first condition can be sensed with the modifiers as you do already. Alternative you can use two keyboard sensors with AND.

The second expression requires two keyboard sensors:

-> Keyboard sensor sense

-> Keyboard sensor sense [inverted]

combined with AND

enter image description here

or

-> Keyboard sensor "A" sense

-> Keyboard sensor "Shift" sense

(both positive)

combined with expression controller: "A and not Shift"

The last option can be used to reduce the number of involved sensors: enter image description here

$\endgroup$
6
  • $\begingroup$ Assalam alaykum warahamatullah wabarakatu ok i understand more less, but and what are the first and second modifier boxes ??? $\endgroup$
    – user55877
    May 8, 2018 at 7:08
  • $\begingroup$ but and what are the first and second modifier boxes ???, why have a 1 brick for Left shift separate of A, and why have a brick for A & Left Shift (in the first modifier) $\endgroup$
    – user55877
    May 8, 2018 at 7:21
  • $\begingroup$ As said, the modifier option is a shortcut to two keyboard sensors combined with AND. You measure -> "shift+A" are pressed at the same time. It does not measure "not shift + A" $\endgroup$
    – Monster
    May 8, 2018 at 12:10
  • $\begingroup$ You are right, not being able to detect combinations of more keys pressed simultaneously,yes it's a hardware problem, I had already asked myself before because it could not,but someone made fun of me because I asked that, so I left it for peace, but I see that there are more people who think like me, you should be able to press unlimited simultaneous key combinations, or minimum for those that reach your fingers and toes $\endgroup$
    – user55877
    May 8, 2018 at 13:43
  • $\begingroup$ how many times i can combine Left Shift with other keys, after using it with shift A, as in the example? $\endgroup$
    – user55877
    May 8, 2018 at 19:32

You must log in to answer this question.