Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_susiezilla_house_single_Draw_0

(view raw script w/o annotations or w/e)
1
var shakeamt = 0;
2
if (drawshake == 4)
3
    shakeamt = 4;
4
if (drawshake == 3)
5
    shakeamt = -4;
6
if (drawshake == 2)
7
    shakeamt = 2;
8
if (drawshake == 1)
9
    shakeamt = -2;
10
drawshake--;
11
if (myhealth <= 0)
12
{
13
    image_blend = c_white;
14
    smoketimer++;
15
    if ((smoketimer % 240) == 0)
16
    {
17
    }
18
}
19
else
20
{
21
    image_blend = merge_color(#7D3E46, c_white, myhealth / startinghealth);
22
}
23
draw_sprite_ext(sprite_index, image_index, x + shakeamt, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
24
tenna_index++;
25
if (i_ex(obj_susiezilla_house_timer))
26
{
27
    if (obj_susiezilla_house_timer.timer > 95)
28
    {
29
        minitenna_scale += 1;
30
        minitenna1_x += 20;
31
        minitenna1_y += 20;
32
        minitenna2_x -= 20;
33
        minitenna2_y += 20;
34
        minitenna3_y += 20;
35
    }
36
}