Multiple key presses
Blitz3D Forums/Blitz3D Programming/Multiple key presses
| ||
Is it true that when two keys are pressed in the same time then Blitz3D cannot detect a third key press? take a look into the following code to see what I mean: While Not KeyHit(1) If KeyDown(203) And KeyDown(200) Print "I am moving diagonal!" Else Print EndIf If KeyDown(57) Print "I am firing!" Wend |
| ||
Well, usually you would fire from the mouse! Why not choose jumping instead? |
| ||
Its down to the keyboard I think |
| ||
_33: This is not working also: While Not KeyHit(1) If KeyDown(203) And KeyDown(200) Print "I am moving diagonal!" Else Print EndIf If KeyDown(57) Print "I am jumping!" Wend |
| ||
This is not working also: Both examples work fine here. Its down to the keyboard I think Yep :-) |
| ||
I believe that some keys can not be combined properly, perhaps only on certain keyboards. However, you can combine WASD with space. |
| ||
It works on my keyboard only for WASD... with SPACE Thanks all of you |
| ||
Most keyboards cant' exceed 2 or 3 keys together, as some keys have prioritys. It 's keyboard specific. So, for most gameplay compatibility, try to code without this need. |
| ||
The best keys to use for the third key press are alts, ctrls and shifts, these are usally pretty safe to use. But as mentioned already, it's down to the keyboard. |
| ||
take care using those keys , you could enable the "multi ctrl key" that open the windows menu for shortcuts. |