Key Press Detection Limit?

This forum is currently in read-only mode.
From the Asset Store
Detects any kind of ad blocker. Very easy implementation into already existing projects
  • 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

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Have a look at this page.

    construct.net/en

  • 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.

  • 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.

  • 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!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)