This is a clean, commented and didactic version of my system. I'm also developing a game, so I understand the barriers for beginners and intermediate game maker users.
This asset was made as a result from my efforts to make my own input handling system for my own games.
This resource can be used in free and commercial projects. How to Install GameMaker Studio Ultimate Full Version.Then choose the object obj_input, click on Add and then click on Import. Or you could also import the local package ( basic_input_handling.yymps file, available with this asset) to your Game Maker project. So, the only thing necessary to make use of this asset pack is to add the obj_input of this project to your target project.
The extension allows GML code to call Lua functions and for Lua code to call exposed GML scripts and/or work with exposed GML instances. The extension works on Windows, Mac, and Linux. Apollo allows to integrate Lua scripting into your GameMaker: Studio 1 / GameMaker Studio 2 games. This single object has everything necessary to read, store and retrieve the inputs. Versions: GameMaker: Studio, GameMaker Studio 2. obj_input: that's essential for the system.obj_player_example: its there for demonstration purposes, to show how the input system works.Also for toggle fullscreen, restart and end game obj_controller: its there just to manage the GUI, screen and window size.There are 3 objects in this project ( Basic_Input_Handling.yyz file).
Just make sure it runs before you try to work the actions for the inputs. Or you can deliberately call the user_event whenever you need. This can be done as this asset pack project shows, by calling the user_event in the Begin_Step of the obj_input. Obviously, the input acquisition must precede the input verification, so make sure to call the user event of the obj_input before trying to work out the actions for each input.