Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_susiezilla_zombie_Step_2

(view raw script w/o annotations or w/e)
1
event_inherited();
2
depth = 100000 - ((y + 30) * 10);
3
if (attackcon == 2)
4
    depth = 100000 - ((y + 80) * 10);
5
if (attackcon == 3 && image_index == 11)
6
    depth = -999999;
7
if (height > 0 || fall_speed != 0)
8
{
9
    shadow.visible = true;
10
    shadow.x = x;
11
    shadow.y = y;
12
    shadow.depth = depth + 1000;
13
}
14
else
15
{
16
    shadow.visible = false;
17
}