Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_controls_battle_heart_red

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

function scr_controls_battle_heart_red() //gml_Script_scr_controls_battle_heart_red { if (moveable == true) { key_right = global.right_key key_left = (-global.left_key) key_down = global.down_key key_up = (-global.up_key) key_select = keyboard_multicheck(0) key_revert = keyboard_multicheck(1) } else { key_right = 0 key_left = 0 key_down = 0 key_up = 0 key_select = 0 key_revert = 0 } }
() //gml_Script_scr_controls_battle_heart_red
2
{
3
    if (moveable == true)
4
    {
5
        key_right = global.right_key
6
        key_left = (-global.left_key)
7
        key_down = global.down_key
8
        key_up = (-global.up_key)
9
        key_select = keyboard_multicheck(0)
10
        key_revert = keyboard_multicheck(1)
11
    }
12
    else
13
    {
14
        key_right = 0
15
        key_left = 0
16
        key_down = 0
17
        key_up = 0
18
        key_select = 0
19
        key_revert = 0
20
    }
21
}