How do I register multiple key presses?

Just started using Construct 2? Post your questions here

Post » Tue Aug 04, 2015 8:47 am

Specifically, I need the game to register when the A, L and K buttons are pressed but this combination of keys doesn't seem to work together. Once the A and L buttons are held down, the K won't register. Is this just an issue with my keyboard or is it global? I know there are other three-key combinations which will work but I ideally need it to be these three keys (I won't bore anyone with a long description of my game but it's a finger-twister sort of thing).

Any advice or suggestions will be greatly appreciated. I can post a capx if that helps.

Thanks!
B
5
S
2
Posts: 53
Reputation: 792

Post » Tue Aug 04, 2015 8:56 am

Image
B
28
S
11
G
2
Posts: 139
Reputation: 3,299

Post » Tue Aug 04, 2015 12:04 pm

Thanks very much, but I'm afraid that doesn't work. If A and L are down (in the game, they need to be continuously held down for much of the time) then it will not register K being pressed or held down. Most other keys will register fine in the same circumstances.
B
5
S
2
Posts: 53
Reputation: 792

Post » Tue Aug 04, 2015 4:43 pm

That's a hardware wiring issue I think. Most keyboard don't allow more than two keystrokes at once (with the exception of ctrl, alt, shift). So pressing A, L and K at the same time isn't technically possible. I think there are keyboards that allow multiple simulatenous keystrokes but it's not standard.

https://en.wikipedia.org/wiki/Rollover_(key)
B
20
S
8
G
4
Posts: 195
Reputation: 3,555

Post » Tue Aug 04, 2015 5:01 pm

I was hoping that wasn't the case but thanks very much for settling it for me! I'll have to work the game mechanics in a slightly different way all round as I don't want to risk some players being locked out due to their keyboards.
B
5
S
2
Posts: 53
Reputation: 792

Post » Wed Aug 05, 2015 4:03 pm

its working fine on me also what eliasfrost said non mechanical keyboards have limitations on keystrokes so you have to to think for a work around
Image
B
28
S
11
G
2
Posts: 139
Reputation: 3,299


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest