Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_bowll_head_a_Other_10

(view raw script w/o annotations or w/e)
1
if (stage_counter != 0 && nostril_draw != -1)
2
{
3
    if (sprite_index == spr_bowll_head_normal || sprite_index == spr_bowll_head_grateful)
4
    {
5
        instance_create((x - 12), y, obj_bowll_nostrils_cloud_a)
6
        instance_create((x + 10), y, obj_bowll_nostrils_cloud_a)
7
    }
8
    else if (sprite_index == spr_bowll_head_critical)
9
    {
10
        instance_create((x - 12), (y - 4), obj_bowll_nostrils_cloud_a)
11
        instance_create((x + 10), (y - 4), obj_bowll_nostrils_cloud_a)
12
    }
13
    nostril_count += 1
14
    if (nostril_count < nostril_max)
15
        alarm[0] = nostril_alarm
alarm[0]

event_user(0)
16
    else
17
        nostril_count = 0
18
}
19
else
20
    nostril_count = 0