Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_board_enemy_bluefish_Draw_0

(view raw script w/o annotations or w/e)
1
if (test == 0)
2
{
3
}
4
if (test == 1)
5
{
6
}
7
if (test == 2)
8
{
9
}
10
if (test == 3)
11
{
12
}
13
if (show_outline == true)
14
{
15
    if (hurttimer > 0 && (hurttimer % 2) == 0)
16
        d3d_set_fog(true, c_white, 0, 1);
17
    else
18
        d3d_set_fog(true, c_black, 0, 1);
19
    draw_sprite_ext(sprite_index, image_index, (round(x / 2) * 2) - 2 - 0, (round(y / 2) * 2) - 0, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
20
    draw_sprite_ext(sprite_index, image_index, ((round(x / 2) * 2) + 2) - 0, (round(y / 2) * 2) - 0, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
21
    draw_sprite_ext(sprite_index, image_index, (round(x / 2) * 2) - 0, (round(y / 2) * 2) - 2 - 0, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
22
    draw_sprite_ext(sprite_index, image_index, (round(x / 2) * 2) - 0, ((round(y / 2) * 2) + 2) - 0, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
23
    d3d_set_fog(false, c_black, 0, 0);
24
}
25
draw_sprite_ext(sprite_index, image_index, (round(x / 2) * 2) - 0, (round(y / 2) * 2) - 0, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
26
if (hurttimer > 0 && (hurttimer % 2) == 0 && hp != maxhp)
27
    draw_sprite_ext(hurt_sprite, image_index, (round(x / 2) * 2) - 0, (round(y / 2) * 2) - 0, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
28
if (invincibility_frames > 0 && (invincibility_frames % 2) == 0)
29
    draw_sprite_ext(hurt_sprite, image_index, (round(x / 2) * 2) - 0, (round(y / 2) * 2) - 0, image_xscale, image_yscale, image_angle, image_blend, image_alpha);