eastern-flames/eastern flames/scripts/keyboard_check_advanced/keyboard_check_advanced.gml

18 lines
403 B
Plaintext
Raw Permalink Normal View History

2022-08-07 21:14:04 +00:00
function keyboard_check_advanced() {
if keyboard_check(vk_anykey) {
if keyboard_key = holding {
count++;
if count >= 30 {
keyboard_check_advanced = keyboard_check;
}
} else {
keyboard_check_advanced = keyboard_check_pressed;
count = 0;
}
holding = keyboard_key;
show_debug_message(currentpos);
} else {
keyboard_check_advanced = keyboard_check_pressed;
count = 0;
}
}