Can anyone help with smooth rotation using the keyboard? so far I have:
moveUp = keyboard_check(ord("W"));
moveDown = keyboard_check(ord("S"));
moveRight = keyboard_check(ord("D"));
moveLeft = keyboard_check(ord("A"));
var _horMove = moveRight - moveLeft;
var _verMove = moveDown - moveUp...
I'm trying to write some unit tests and need to simulate a key being pressed for an object's keyboard_check_pressed event to be true.
I was under the impression keyboard_key_press(key) would simulate that the key was being pressed, thus making keyboard_check_pressed(key) return true, but...
Hey there guuysss...
Somehow my game manages to get spikes on the keyboard input but not in the actual FPS of the game, that makes my game sometimes miss a keypress and when you are chatting it is very uncomfortable.
I have used the debugger to ensure it is not an FPS drop when a key is...
is there a way to get the currently pressed keyboard key by looping through keys?
something similar to what this does for the gamepad..
for ( var i = gp_face1; i < gp_axisrv; i++ )
if ( gamepad_button_check( 0, i ) ) return i;
I don't want to use keyboard_lastkey...
In settings i want to make all my in-game buttons, so the player can choose the button he needs and set it to new button. How to make a check what button the player pressed? And how to set this button to all other systems? Sorry for bad english, thanks
Im making a platform game where my character can duck. When he ducks in the air, he performs a groundpound. key_duck is asigned to the 'S' key (not pressed or released). vsp is the vertical speed and duckgrav is the groundpound speed. While performing the groundpound, the sprite should be...
I need some help with keyboard tapping.
What I want to do:
Quickly Tap the space key on a keyboard to launch the start menu
Quickly Tap the space key on a keyboard again to close the start menu
What I have figured out already:
How to execute/stop the script itself
What I have tried...
Firstly I thank everyone for any support you guys could provide, I've been working with GMS 2 for a while now and It has been awesome so far. but right now I am a bit confused, I have the following code:
state = STATE.CHARGING;
How can I use keyboard_check, _pressed and _released with punctuation symbols, such as , . / ; ' [ ] - = ..?
In the manual, it said to use "keyboard_lastchar", but I think that'll only work with pushing the button, and I also want to register when you release that button.
How do I do this?
Version: Game Maker Studio 2 Full - IDE v220.127.116.115 - Runtime v18.104.22.1681
So I've been working on a game that I'd like to be more console friendly for future exports and have no idea how getting a user entered string would work on something like PS4 and Nintendo Switch. Since my main target...
im having trouble creating s options menu for gsm 2 where the player can customize controls by typing in his/her own key for a movement. There seems to be no tutorials on how to do this. Ex.
I know it’s fortnite, but I want the customizabilty of the keybinds in my game
I'm making a virtual keyboard, this will be used to make learning Touch Typing Easier for people, Game Maker cannot recognize the keys that I underlined with red in the photo above.
Is there a way to make it recognize any of these key inputs, so that I can change sprites when the key is pressed...
I want to make a Keyboard program for Windows in which a user can open on their screen, then type, and the keystrokes they press will light up. I know how to do this, but I don't know how to make it work in the background while the user is typing in their browser or on Notepad.exe, any...
keyboard_lastkey in HTML5 is not working properly in v1.4.9999, It does not record single key presses, you need to press and hold for a couple of seconds to respond. It works fine in native WIndows.
To see the problem, insert the following in a simple object's step event (and compile under...
So I put this in the step event of my character...
But it wouldn't work. It works fine if I just put the middle bit of that code into the "spacebar" event, but why doesn't it do anything like this?
EDIT: Is it a...
I'm experimenting with a Linux build and everything is working fine. Just one question:
Has anyone encountered and have any experience with the fact that Linux os doesn't seem to allow pressing and holding the control button at the same with arrow keys? Is this built into the os? I'm...
Linux users playing my game DASH can't press two buttons at the same time? It's a platformer (so you press several keys at the same time all the time) and there is no way I am redesigning the controls and mechanics because of this.
All my keyboard check code is simply standard gml. Nothing...
In my game I had the following script for the movement of the player which worked fine:
left = keyboard_check(vk_left) or keyboard_check(ord('A'));
right = keyboard_check(vk_right) or keyboard_check(ord('D'));
up = keyboard_check(vk_up) or keyboard_check(ord('W'));