Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_susiezilla_singlescreen_hazard_Draw_73

(view raw script w/o annotations or w/e)
1
if (friendly)
2
    exit;
3
with (obj_susiezilla_gamecontroller)
4
{
5
    if (gameover)
6
        exit;
7
}
8
if (x < (camerax() - 32))
9
{
10
    draw_sprite_ext(spr_susiezilla_harm_indicator, 0, camerax() + 48, y, -0.5, 0.5, 0, c_black, 0.5);
11
    draw_sprite_ext(sprite_index, 0, camerax() + 48, y, image_xscale * 0.75 * 0.75, image_yscale * 0.75 * 0.75, image_angle, image_blend, 1);
12
}
13
if (x > (camerax() + camerawidth() + 32))
14
{
15
    draw_sprite_ext(spr_susiezilla_harm_indicator, 0, (camerax() + camerawidth()) - 48, y, 0.5, 0.5, 0, c_black, 0.5);
16
    draw_sprite_ext(sprite_index, 0, (camerax() + camerawidth()) - 48, y, image_xscale * 0.75 * 0.75, image_yscale * 0.75 * 0.75, image_angle, image_blend, 1);
17
}