Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_susiezilla_singlescreen_shadowguy_parent_Create_0

(view raw script w/o annotations or w/e)
1
iframes = 0;
2
hitcon = 0;
3
ydes = ystart;
4
xdes = xstart;
5
con = 0;
6
state = 0;
7
state_timer = 0;
8
myhealth = 2;
9
facing = 0;
10
ropeheight = -360;
11
ropeheight2 = 0;
12
fakeheight = 0;
13
fakegravity = 1;
14
fakevspeed = 0;
15
canhit = false;
16
damage = 10;
17
knockback = 5;
18
memspeed = speed;
19
memdir = direction;
20
hitspeed = 0;
21
hitdir = 0;
22
drawshake = 0;
23
hitstop = 0;
24
myhitbox = 0;
25
hittimer = 0;
26
fastestspeed = 0;
27
con = 0;
28
contimer = 0;
29
mark_counter = 2;
30
value = 1;
31
gameover = false;
32
desx = xstart;
33
desy = ystart;
34
myhitscale = 4;
35
hopcount = 0;
36
kickactive = false;
37
flash = 0;
38
remfacing = 0;
39
attacktime = 1;
40
fallcon = 0;
41
with (obj_susiezilla_gamecontroller)
42
    show_spawned++;
43
44
polar_facing = function(arg0)
45
{
46
    if (arg0 == 1)
47
        return 1;
48
    if (arg0 == 0)
49
        return -1;
50
    if (arg0 == -1)
51
        return -1;
52
    return 0;
53
};
54
55
instant_defeat = function()
56
{
57
    value = 0;
58
    if (state == states.dead)
59
        exit;
60
    if (ropeheight != 0)
61
    {
62
        with (obj_lerpvar)
63
        {
64
            if (target == other.id)
65
                instance_destroy();
66
        }
67
        with (obj_script_delayed)
68
        {
69
            if (target == other.id)
70
                instance_destroy();
71
        }
72
    }
73
    sprite_index = s_hurt;
74
    image_index = 0;
75
    image_speed = 0;
76
    state = states.dead;
77
    state_timer = 0;
78
alarm[0]
79
    hittimer = 0;
80
    hitstop = 4;
81
    drawshake = hitstop;
82
    canhit = true;
83
    memspeed = 8 + irandom_range(-1, 1);
84
    memdir = point_direction(obj_susiezilla_player.myxcenter, obj_susiezilla_player.myycenter, x, y);
85
    with (obj_susiezilla_gamecontroller)
86
        check_enemies();
87
};