Key Press Detection Limit?

For questions about using Classic.

Post » Thu Jun 14, 2012 11:02 am

it might just be me, perhaps my events are wrong.

but the game seems to only register a max of two keys at a time.


for example:
instead of directly using if key is down -> move.
i'm storing key states as variables, such as
*if key is down -> set global variable input_key_name = 1
*else = 0

and then, say i have LEFT RIGHT RUN JUMP

- if i'm pressing right + run, and press jump, it wont jump,
- but if i release either right/run, it WILL jump,
and so on.

can somebody shed some light into this for me?
THANKS
B
6
S
1
G
1
Posts: 52
Reputation: 858

Post » Thu Jun 14, 2012 1:54 pm

Have a look at this page.

http://www.scirra.com/forum/plugin-input-system-v096b-21-03-2011-keyb-mouse-joy_topic40990.html
B
8
S
2
Posts: 40
Reputation: 2,136

Post » Thu Jun 14, 2012 7:07 pm

Some keyboards can only handle so many keys pressed at once. You might be able to handle more keys pressed at once if you use a different key combination.

I had a keyboard that had the very issue you describe, and it happened in any computer game that I ran.
B
79
S
24
G
54
Posts: 4,746
Reputation: 40,755

Post » Fri Jun 15, 2012 5:08 am

I ran into this issue when previewing it on another computer... That particular keyboard didn't allow for thos key combinations. It basically has to do with the wiring of the keyboard, so try some other combos to see what works best.
B
90
S
32
G
14
Posts: 935
Reputation: 14,540

Post » Fri Jun 15, 2012 12:21 pm

you guys were right, apparently it WAS the keyboard,
strange since it's a laptop keyboard,
i looked for the drivers if that was the case but couldnt find them.

i tried with an usb keyboard i have and it worked just fine.
i have yet to try with other games.

i did try the plug in, but it didnt not detect my input outright!
B
6
S
1
G
1
Posts: 52
Reputation: 858


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 11 guests