Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_controls_battle_main

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

function scr_controls_battle_main() //gml_Script_scr_controls_battle_main { if (image_alpha == 0) { moveable = false no_loop_moveable = false } if (image_alpha == 1 && no_loop_moveable == false) { alarm[0] no_loop_moveable = true } if (image_alpha == 1) { key_right = global.right_keyp key_left = global.left_keyp } else { key_right = 0 key_left = 0 } if (image_alpha == 1 && moveable == true) key_select = keyboard_multicheck_pressed(0) else key_select = 0 }
() //gml_Script_scr_controls_battle_main
2
{
3
    if (image_alpha == 0)
4
    {
5
        moveable = false
6
        no_loop_moveable = false
7
    }
8
    if (image_alpha == 1 && no_loop_moveable == false)
9
    {
10
       alarm[0]
11
        no_loop_moveable = true
12
    }
13
    if (image_alpha == 1)
14
    {
15
        key_right = global.right_keyp
16
        key_left = global.left_keyp
17
    }
18
    else
19
    {
20
        key_right = 0
21
        key_left = 0
22
    }
23
    if (image_alpha == 1 && moveable == true)
24
        key_select = keyboard_multicheck_pressed(0)
25
    else
26
        key_select = 0
27
}