Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_martlet_feather_flow_vertical_Alarm_1

(view raw script w/o annotations or w/e)
1
if (image_blend == c_red)
2
{
3
    image_blend = c_white;
4
}
5
else
6
{
7
    audio_play_sound(snd_bullet_warning, 1, 0);
8
    image_blend = c_red;
9
    feather_explode_counter += 1;
10
}
11
alarm[1] = 3;
gml_Object_obj_battle_enemy_attack_martlet_feather_flow_vertical_Alarm_1.gml

if (image_blend == c_red) { image_blend = c_white; } else { audio_play_sound(snd_bullet_warning, 1, 0); image_blend = c_red; feather_explode_counter += 1; } alarm[1] = 3; if (feather_explode_counter > 3) { var i = 1; var angle_base = irandom_range(0, 359); while (i <= 3) { with (instance_create(x, y, obj_battle_enemy_attack_martlet_feather_flow_explosion)) angle = angle_base + (120 * i); i++; } audio_play_sound(snd_mart_spiral_attack_2, 1, 0); instance_destroy(); }
12
if (feather_explode_counter > 3)
13
{
14
    var i = 1;
15
    var angle_base = irandom_range(0, 359);
16
    while (i <= 3)
17
    {
18
        with (instance_create(x, y, obj_battle_enemy_attack_martlet_feather_flow_explosion))
19
            angle = angle_base + (120 * i);
20
        i++;
21
    }
22
    audio_play_sound(snd_mart_spiral_attack_2, 1, 0);
23
    instance_destroy();
24
}