input

  1. M

    Legacy GM Limit input to one line.

    hello, I am currently trying to get a username variable using global.playername = get_string("please enter your name:", " "); and I would like to limit the player input to one line, IE: "Keith Testerson" currently, if the user inputs a name they can use the enter key(Android) when inputting...
  2. Erayd

    Windows Strange input results

    Why is the below code resulting in my player being unable to move left or right when holding the up and own keys? var up = 0; var left = 0; var down = 0; var right = 0; if(keyboard_check(ord("W")) || keyboard_check(vk_up)) up = true; if(keyboard_check(ord("A")) || keyboard_check(vk_left)) left...
  3. Tsa05

    GameMaker Multiline Textbox: Improved, still needs optimization ideas

    I think we've all dodged around this a bit for decades, so I'm just going to post a multiline textbox script now and have done with it. GMS has long gotten away with having no built-in way to allow reasonable multi-line text input because A) Why would your player want to write an essay in your...
  4. Geners

    Help with my text box system [FIXED]

    SO I created this really basic text input system, the only problem is, when I have multiples the text copies over whenever I click on a different box. I know exactly what's causing this problem, but I'm having somewhat of a difficult time coming up with a work around. Any help would be...
  5. Y

    Legacy GM Gamemaker detecting bluetooth speaker as gamepad

    So I'm trying to add gamepad support to my game. but for some reason gamemaker is 💩💩💩💩ting on me. I'm using the standard manual code to check if there are gamepads detected var gp_num = gamepad_get_device_count(); for (var i = 0; i < gp_num; i++;) { if gamepad_is_connected(i)...
  6. B

    Legacy GM Requiring Specific Player Input to "Open" a door?

    Essentially, I'm coding an educational video game for a senior project/thesis paper in high school, and I need to require very specific player input to unlock further progress in the game. What should I look into to achieve this? Thank you all very much for any help you can offer! EDIT...
  7. T

    GameMaker gp_select PS4 controller

    According to the manual gp_select = The select button (this is a touch-pad press on a PS4 controller). But it doesn't work when I press the touch-pad. Am I doing something wrong? if gamepad_is_connected(4) { if keyboard_check_pressed(ord("E")) or gamepad_button_check_pressed(4,gp_face2) or...
  8. L

    Question - Code [UNSOLVED] (Bug?) Weird Input "Lag"

    I noticed something a little bit strange when debugging my own project; when i simply click my left mouse button, the debug overlay showed an increase in step time. To make sure i had 0 code that used the left mouse button, i made a 100% clean empty project and only have the debugging overlay...
  9. D

    Asset - Scripts Full Input Boxes

    https://marketplace.yoyogames.com/assets/3239/full-input-box Fully functional multiple-line input boxes with mobile features. If you need a simple one-line input box with all the features for pc and mobile, this is the one for you. With this text input asset you can avoid high prices and the...
  10. Divinik

    Windows Controller not working after being unplugged?

    I'm using the standard input variables for my controller code: if gamepad_is_connected(0) { sprite_index = x; //insert input options here } else {//keyboard options}; After my controller was unplugged (using a PS4 controller with DS4 Windows, Xinput), it no longer registers when...
  11. Divinik

    Legacy GM Keyboard/Gamepad Input Limit?

    I'm currently developing a platformer beat-em-up RPG. I use "gamepad_button_check_pressed(0,gp_face1)" and "keyboard_check_pressed(vk_enter)" for menu option selection. I created a new object and now the input values won't work for it. Does any body know why this is happening?
  12. A

    GML Disable player INPUT

    Hello! I'm trying to create a game where the player can take control of numerous objects. So I must disable the main PLAYER inputs to control an another object. Which is the clever way to achieve this? Thanks in advance :)
  13. GMWolf

    GML Keyboard Remapping - GMWolf

    GM Version: GameMaker studio and Studio 2 Target Platform: ALL Download: N/A Links: Video Link Summary: As introduced in the video, Keyboard mapping can be done using variables, but it can be quite a limmiting technique. Thankfully GM includes a set of functions made specifically to deal with...
  14. A

    GameMaker Checking Multiple input Types

    Hi, I am currently working on a project that includes allowing the player to remap their keys. They will be allowed to remap their keys to either mouse, or keyboard buttons. However I am having trouble finding a way to check if the input is either a keyboard or a mouse input. Currently I am...
  15. andev

    keyboard_check with symbols

    It seems that only A-Z, 1-0 work with the keyboard_check functions. keyboard_string works for input, but I also need to know when a symbol gets released. keyboard_string fills up with repeated characters if it's held down, but only works with one key at a time, and also is extremely inaccurate...
  16. S

    Microphone Input GM2 Desktopapp

    Dear community – Is it possible to get the realtime input-level und GM2 from a microphone as a value? I need that for a client-project. The targetplattform is Windows 10. Thanks to everbody! Manuel
  17. Dragon47

    Asset - Extension Text Inputs - GM Studio 2

    Demo: https://1drv.ms/u/s!AppH38QcoEBfiKVFbF-SFrlkQCoQbQ Poor input boxes make your game look and feel unprofessional, and can ruin the important first impression of a player. But they're a pain to program properly. With this text input extension you can avoid dozens of hours of UI programming...
  18. Y

    Check for any input?

    I want to check if there is any input on the keyboarx, is that posseble? I googled a little bit but i could not find anything
  19. sv3nxd

    Legacy GM Key-Input-Field with false and wrong answer - How?

    So im currently working on a game in which the protagonist needs to solve some riddles. One of them is to answer a question. Therfore the player needs to type in the answer with the keyboard. I set it up to the point where i only need one thing: A result I want the player to answer and then...
  20. Posho

    GML Receive Inputs when Window is not Active [Solved]

    Hello. I need a way to make my game receive keyboard inputs (like hotkeys) even when it is not the active window. Is there any way to achieve this?
Top