Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_controls_battle_heart_blue_up

(view raw script w/o annotations or w/e)
1
function scr_controls_battle_heart_blue_up
scr_controls_battle_heart_blue_up

function scr_controls_battle_heart_blue_up() //gml_Script_scr_controls_battle_heart_blue_up { if (global.player_1_using_keyboard == true && moveable == true) { key_right = keyboard_check(global.player_1_control_keyboard_right) key_left = (-keyboard_check(global.player_1_control_keyboard_left)) key_down = keyboard_check(global.player_1_control_keyboard_down) key_up = keyboard_check(global.player_1_control_keyboard_up) key_down_release = keyboard_check_released(global.player_1_control_keyboard_down) key_select = (keyboard_check_pressed(global.player_1_control_keyboard_button_1) || keyboard_check_pressed(global.player_1_control_keyboard_button_4)) key_revert = (keyboard_check(global.player_1_control_keyboard_button_2) || keyboard_check(global.player_1_control_keyboard_button_5)) } else if (global.player_1_using_gamepad == true && moveable == true) { key_right = gamepad_button_check(0, global.player_1_control_gamepad_right) key_left = (-(gamepad_button_check(0, global.player_1_control_gamepad_left))) key_down = gamepad_button_check(0, global.player_1_control_gamepad_down) key_up = gamepad_button_check(0, global.player_1_control_gamepad_up) key_down_release = gamepad_button_check_released(0, global.player_1_control_gamepad_down) key_select = (gamepad_button_check_pressed(0, global.player_1_control_gamepad_button_1) || gamepad_button_check_pressed(0, global.player_1_control_gamepad_button_4)) key_revert = (gamepad_button_check(0, global.player_1_control_gamepad_button_2) || gamepad_button_check(0, global.player_1_control_gamepad_button_5)) } else { key_right = 0 key_left = 0 key_down = 0 key_up = 0 key_down_release = 0 key_select = 0 key_revert = 0 } }
() //gml_Script_scr_controls_battle_heart_blue_up
2
{
3
    if (global.player_1_using_keyboard == true && moveable == true)
4
    {
5
        key_right = keyboard_check(global.player_1_control_keyboard_right)
6
        key_left = (-keyboard_check(global.player_1_control_keyboard_left))
7
        key_down = keyboard_check(global.player_1_control_keyboard_down)
8
        key_up = keyboard_check(global.player_1_control_keyboard_up)
9
        key_down_release = keyboard_check_released(global.player_1_control_keyboard_down)
10
        key_select = (keyboard_check_pressed(global.player_1_control_keyboard_button_1) || keyboard_check_pressed(global.player_1_control_keyboard_button_4))
11
        key_revert = (keyboard_check(global.player_1_control_keyboard_button_2) || keyboard_check(global.player_1_control_keyboard_button_5))
12
    }
13
    else if (global.player_1_using_gamepad == true && moveable == true)
14
    {
15
        key_right = gamepad_button_check(0, global.player_1_control_gamepad_right)
16
        key_left = (-(gamepad_button_check(0, global.player_1_control_gamepad_left)))
17
        key_down = gamepad_button_check(0, global.player_1_control_gamepad_down)
18
        key_up = gamepad_button_check(0, global.player_1_control_gamepad_up)
19
        key_down_release = gamepad_button_check_released(0, global.player_1_control_gamepad_down)
20
        key_select = (gamepad_button_check_pressed(0, global.player_1_control_gamepad_button_1) || gamepad_button_check_pressed(0, global.player_1_control_gamepad_button_4))
21
        key_revert = (gamepad_button_check(0, global.player_1_control_gamepad_button_2) || gamepad_button_check(0, global.player_1_control_gamepad_button_5))
22
    }
23
    else
24
    {
25
        key_right = 0
26
        key_left = 0
27
        key_down = 0
28
        key_up = 0
29
        key_down_release = 0
30
        key_select = 0
31
        key_revert = 0
32
    }
33
}