Deltarune (Chapter 1) script viewer

← back to main script listing

gml_Object_obj_cloverhole_Create_0

(view raw script w/o annotations or w/e)
1
scr_depth
scr_depth

function
scr_depth()
{ depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
2
image_xscale = 2;
3
image_yscale = 2;
4
holecon = 0;
5
image_speed = 0;
6
distance = 9999;
7
type = 0;
8
maxdist = 80;
9
if (room == room_forest_area3)
10
{
11
    if (x < 600)
12
    {
13
        type = 0;
14
    }
15
    else
16
    {
17
        type = 1;
18
        if (x >= 1000)
19
            type = 2;
20
    }
21
    if (global.plot >= 75)
22
        holecon = 999;
23
}
24
sprite_type[0] = spr_cloverhole_happy;
25
sprite_type[1] = spr_cloverhole_shy;
26
sprite_type[2] = spr_cloverhole_mad;