Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_testbutton_Step_0

(view raw script w/o annotations or w/e)
1
if (variant == 0)
2
    sprite_index = spr_ztest
3
if (variant == 1)
4
    sprite_index = spr_xtest
5
if (variant == 2)
6
    sprite_index = spr_ctest
7
if (variant == 0)
8
{
9
    if keyboard_multicheck(0)
10
        image_index = 1
11
    else
12
        image_index = 0
13
}
14
if (variant == 1)
15
{
16
    if keyboard_multicheck(1)
17
        image_index = 1
18
    else
19
        image_index = 0
20
}
21
if (variant == 2)
22
{
23
    if keyboard_multicheck(2)
24
        image_index = 1
25
    else
26
        image_index = 0
27
}
28
if (obj_cconfig.control_test == true)
29
    image_alpha = 1
30
else
31
    image_alpha = 0