Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_background_boss_battle_1_yellow_Draw_0

(view raw script w/o annotations or w/e)
1
if instance_exists(obj_battle_enemy_attack_dalv_lightning_vertical)
2
{
3
    if (obj_battle_enemy_attack_dalv_lightning_vertical.image_speed_counter < 1 || (obj_battle_enemy_attack_dalv_lightning_vertical.image_speed_counter >= 2 && obj_battle_enemy_attack_dalv_lightning_vertical.image_speed_counter < 4))
4
    {
5
        d3d_set_fog(true, c_white, 0, 0)
6
        draw_self()
7
        d3d_set_fog(false, c_white, 0, 0)
8
    }
9
    else
10
        draw_self()
11
}
12
else if instance_exists(obj_battle_enemy_attack_dalv_lightning_horizontal)
13
{
14
    if (obj_battle_enemy_attack_dalv_lightning_horizontal.image_speed_counter < 1 || (obj_battle_enemy_attack_dalv_lightning_horizontal.image_speed_counter >= 2 && obj_battle_enemy_attack_dalv_lightning_horizontal.image_speed_counter < 4))
15
    {
16
        d3d_set_fog(true, c_white, 0, 0)
17
        draw_self()
18
        d3d_set_fog(false, c_white, 0, 0)
19
    }
20
    else
21
        draw_self()
22
}
23
else
24
    draw_self()