Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_bowll_head_a_Other_11

(view raw script w/o annotations or w/e)
1
if (sprite_index == spr_bowll_head_normal)
2
{
3
    for (i = 0; i < array_length_1d(spr_normal); i++)
4
    {
5
        if (stage_counter == spr_normal[i])
6
        {
7
            image_speed = image_speed_head
8
            image_index = 0
9
        }
10
    }
11
    if (stage_counter == st_normal_1)
12
        nostril_draw = 0
13
    if (stage_counter == st_normal_2)
14
    {
15
        nostril_draw = 1
16
        event_user(0)
17
    }
18
    if (stage_counter == st_normal_3)
19
        nostril_draw = -1
20
    if (stage_counter >= st_normal_4)
21
        event_user(15)
22
}
23
if (sprite_index == spr_bowll_head_grateful)
24
{
25
    if (stage_counter == st_grateful_1)
26
        nostril_draw = 0
27
    if (stage_counter == st_grateful_2)
28
    {
29
        nostril_draw = 1
30
        event_user(0)
31
    }
32
    if (stage_counter == st_grateful_3)
33
        nostril_draw = -1
34
    if (stage_counter >= st_grateful_4)
35
        event_user(15)
36
}
37
if (sprite_index == spr_bowll_head_critical)
38
{
39
    for (i = 0; i < array_length_1d(spr_critical); i++)
40
    {
41
        if (stage_counter == spr_critical[i])
42
        {
43
            image_speed = image_speed_head
44
            image_index = 0
45
        }
46
    }
47
    if (stage_counter == st_critical_1)
48
        nostril_draw = 0
49
    if (stage_counter == st_critical_2)
50
    {
51
        nostril_draw = 1
52
        event_user(0)
53
    }
54
    if (stage_counter == st_critical_3)
55
        nostril_draw = -1
56
    if (stage_counter >= st_critical_4)
57
        event_user(15)
58
}