LinkDudeWolf
Member
So the problem I'm having is that when I press Z it sets Z to be left, what I want to do is when I press Z you can afterward press any key and that will be left, so basically when I press Z it just sets it immediately my question is how to stop that is there perhaps a function for that?
Also, I know you can do this instead:
I'm just curious if there is another way (I changed keyboard_check_pressed to keyboard_check_released for those wondering what I changed)
GML:
if keyboard_check_pressed(ord("Z")) {
thing = true;
}
if thing = true and keyboard_check_released(vk_anykey) {
global.PlayerLeft = keyboard_lastkey
thing = false;
}
Also, I know you can do this instead:
GML:
if keyboard_check_released(ord("Z")) {
thing = true;
}
if thing = true and keyboard_check_pressed(vk_anykey) {
global.PlayerLeft = keyboard_lastkey
thing = false;
}