Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_netskie_enemy_Draw_0

related scripts: Alarm_4CleanUp_0Create_0Draw_0 Other_22Step_0

(view raw script w/o annotations or w/e)
1
tailalpha += 0.1;
2
tailwagtimer--;
3
if (tailwagtimer > 0 && tailwagtimer < 24)
4
    siner2++;
5
if (tailwagtimer == 0)
6
{
7
    siner2 = 0;
8
    tailwagtimer = 60 + irandom(120);
9
    if (global.mercymod[myself] >= global.mercymax[myself])
10
        tailwagtimer = 40;
11
}
12
if (state == 3 && hurttimer >= 0)
13
{
14
    siner++;
15
    if (global.mercymod[myself] >= global.mercymax[myself])
16
        draw_monster_body_part(spr_tree_fox_eye_tail, siner2 / 3, x + 40 + shakex + hurtspriteoffx, y + 20 + hurtspriteoffy);
17
    else
18
        draw_monster_body_part_netskietail(7455, siner2 / 3, x + 40 + shakex + hurtspriteoffx, y + 20 + hurtspriteoffy, tailalpha);
19
    draw_sprite_ext(hurtsprite, 0, x + shakex + hurtspriteoffx, y + hurtspriteoffy, 2, 2, 0, image_blend, 1);
20
}
21
if (state == 1 && draw_type == 0)
22
{
23
    if (global.mercymod[myself] >= global.mercymax[myself])
24
        draw_monster_body_part(spr_tree_fox_eye_tail, siner2 / 3, x + 40, y + 20);
25
    else
26
        draw_monster_body_part_netskietail(7455, siner2 / 3, x + 40, y + 20, tailalpha);
27
    fsiner++;
28
    siner++;
29
    draw_monster_body_part(spr_tree_fox_laugh, siner / 2, x, y);
30
}
31
if (state == 0 && draw_type == 0)
32
{
33
    if (global.mercymod[myself] >= global.mercymax[myself])
34
        draw_monster_body_part(spr_tree_fox_eye_tail, siner2 / 3, x + 40, y + 20);
35
    else
36
        draw_monster_body_part_netskietail(7455, siner2 / 3, x + 40, y + 20, tailalpha);
37
    fsiner++;
38
    siner++;
39
    if (global.mercymod[myself] >= global.mercymax[myself])
40
        draw_monster_body_part(spr_tree_fox_laugh, siner / 4, x, y);
41
    else
42
        draw_monster_body_part(idlesprite, siner / 2, x, y);
43
}
44
else if (draw_type == 1)
45
{
46
    if (flash == 1)
47
        fsiner++;
48
    siner += 0.16666666666666666;
49
    draw_monster_body_part(spr_enemy_floradin_body_netskie, siner, x, y + 24);
50
    draw_monster_body_part(spr_enemy_floradin_spikes, siner, x, y + 24);
51
    draw_monster_body_part(spr_enemy_floradin_head, siner, x, y + 24);
52
}
53
else if (draw_type == 2)
54
{
55
    if (flash == 1)
56
        fsiner++;
57
    siner += 0.16666666666666666;
58
    draw_monster_body_part(spr_shadowman_idle_b, siner, x, y);
59
}
60
else if (draw_type == 3)
61
{
62
    if (flash == 1)
63
        fsiner++;
64
    siner += 0.16666666666666666;
65
    draw_monster_body_part(spr_rabbick_enemy_fox, siner, x, y);
66
}
67
else if (draw_type == 4)
68
{
69
    if (flash == 1)
70
        fsiner++;
71
    siner += 0.16666666666666666;
72
    draw_monster_body_part(spr_enemy_aqua_idle_fox, siner, x + 10, y + 10);
73
}
74
else if (draw_type == 4.5)
75
{
76
    if (flash == 1)
77
        fsiner++;
78
    siner += 0.16666666666666666;
79
    if (aquacon >= 12.5)
80
        draw_monster_body_part(spr_enemy_aqua_spin, siner * 2, x + 10 + 18, y + 10 + 70 + yy1);
81
    else
82
        draw_monster_body_part(spr_enemy_aqua_idle_foxleftorigin, siner, x + 10 + 18, y + 10 + 70);
83
}
84
if (draw_type == 5)
85
{
86
    if (flash == 1)
87
        fsiner++;
88
    siner += 0.16666666666666666;
89
    draw_monster_body_part(spr_enemy_aqua_spin, siner, x + 10, y + 10);
90
}
91
if (becomeflash == 0)
92
    flash = 0;
93
becomeflash = 0;