keybard

  1. FoufaDjo

    GMS 2 Change Key State By variable value

    so i want to change key state if its pressed or not by variable value something like this and idk if it work pls help me : rkey = keyboard_check(ord("D")); lkey = keyboard_check(ord("Q")); dkey = keyboard_check(ord("S")); ukey = keyboard_check(ord("Z")); playerid.rkey = mover; playerid.lkey =...
  2. N

    Legacy GM problems with keyboard_key_press and release

    I like to use game maker to make personal helpful programs besides games. Me and a friend wanted to make a solution for playing local coop games online using networking and forced key presses. I understand this may not be the original intent for these functions, but after making some progress I...
  3. C

    'D' key is always being registered as pressed when it isn't

    I just started a brand new project, and this movement code is super simple and I have used it for many games in the past. I just started using GM again after some years but in my mind I don't think there's anything wrong with this code. The up and down directions work fine, but the player is...
  4. tagomago

    Best way to support and map gamepad+keyboard?

    Hi, I am trying to set up a controller object that would handle all player inputs, supporting Keyboard and Gamepad. It was important to be able to use keyboard and gamepad at the same time (ex. when player presses left on keyboard and right on gamepad, the player_object would stop). So I...
Top