#define script_keypress // This script will show you if the player is // pressing the arrow keys // First put the step event then drag the // execute script then select this script if keyboard_check_pressed(vk_up) // You can also move diagonal vspeed = -4 if keyboard_check_pressed(vk_down) // You can also move diagonal vspeed = 4 if keyboard_check_pressed(vk_left) // You can also move diagonal hspeed = -4 if keyboard_check_pressed(vk_right) // You can also move diagonal hspeed = 4 if keyboard_check_released(vk_up) // If you release the key the player will not move vspeed = 0 if keyboard_check_released(vk_down) // If you release the key the player will not move vspeed = 0 if keyboard_check_released(vk_left) // If you release the key the player will not move hspeed = 0 if keyboard_check_released(vk_right) // If you release the key the player will not move hspeed = 0