Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_susiezilla_statue_Draw_0

(view raw script w/o annotations or w/e)
1
if (sprite_index == spr_tenna_point_up)
2
{
3
    pal_swap_set(spr_tenna_palette, 1, false);
4
    draw_sprite_ext(sprite_index, image_index, x + (shake * polarity), y, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
5
    pal_swap_reset();
6
}
7
else
8
{
9
    draw_sprite_ext(sprite_index, image_index, x + (shake * polarity), y, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
10
}
11
if (flash)
12
{
13
    d3d_set_fog(true, c_yellow, 0, 1);
14
    draw_sprite_ext(sprite_index, image_index, x + (shake * polarity), y, image_xscale, image_yscale, image_angle, image_blend, flash / 10);
15
    d3d_set_fog(false, c_black, 0, 0);
16
}
17
if (healflash)
18
{
19
    d3d_set_fog(true, c_lime, 0, 1);
20
    draw_sprite_ext(sprite_index, image_index, x + (shake * polarity), y, image_xscale, image_yscale, image_angle, image_blend, healflash / 10);
21
    d3d_set_fog(false, c_black, 0, 0);
22
}
23
if (sprite_index == spr_susiezilla_ralsei_tower && hp > 0)
24
{
25
    if (damage_cooldown > 0)
26
        image_alpha = 0.5;
27
    else
28
        image_alpha = 1;
29
    draw_sprite_ext(spr_susiezilla_censor_bar, 0, round(x) + (!irandom(10) ? choose(-1, 1) : 0) + (shake * polarity) + 32, (round(y) + (!irandom(10) ? choose(-1, 1) : 0)) - 68, -image_xscale, image_yscale, image_angle, image_blend, image_alpha);
30
}