Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_susiezilla_shadowguy_Other_10

(view raw script w/o annotations or w/e)
1
lastState = state;
2
timer = 0;
3
con = 0;
4
if (state == UnknownEnum.Value_0)
5
{
6
    image_speed = 0;
7
    image_index = 0;
8
    sprite_index = spr_susiezilla_shadowguy_idle;
9
}
10
else if (state == UnknownEnum.Value_2 || state == UnknownEnum.Value_1)
11
{
12
    sprite_index = spr_susiezilla_shadowguy_idle;
13
    image_index = 1;
14
    image_speed = 0.16666666666666666;
15
}
16
else if (state == UnknownEnum.Value_4)
17
{
18
    sprite_index = spr_susiezilla_shadowguy_punch;
19
    image_speed = 0;
20
    image_index = 0;
21
}
22
else if (state == UnknownEnum.Value_5)
23
{
24
    sprite_index = spr_susiezilla_shadowguy_kick;
25
    image_speed = 0;
26
    image_index = 0;
27
}
28
else if (state == UnknownEnum.Value_3)
29
{
30
    sprite_index = spr_susiezilla_shadowguy_grabbed;
31
}
32
else if (state == UnknownEnum.Value_6)
33
{
34
    image_speed = 0;
35
    sprite_index = spr_susiezilla_shadowguy_hurt;
36
    image_index = 0;
37
}
38
else if (state == UnknownEnum.Value_7)
39
{
40
    image_speed = 0;
41
    sprite_index = spr_susiezilla_shadowguy_hurt;
42
    image_index = 1;
43
}
44
45
enum UnknownEnum
46
{
47
    Value_0,
48
    Value_1,
49
    Value_2,
50
    Value_3,
51
    Value_4,
52
    Value_5,
53
    Value_6,
54
    Value_7
55
}