Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_cliff_crater_Create_0

(view raw script w/o annotations or w/e)
1
event_inherited();
2
if (bright)
3
    sprite_index = spr_cliff_crater;
4
frontmarker = instance_create(x, y, obj_marker_fancy);
5
surf = -4;
6
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
7
with (frontmarker)
8
{
9
    hole = other;
10
    depth = other.depth + 7;
11
    
12
    draw_func = function()
13
    {
14
        if (hole.altdraw_active)
15
        {
16
            with (hole)
17
            {
18
                if (!surface_exists(surf))
19
                    surf = surface_create(surface_get_width(application_surface), surface_get_height(application_surface));
20
                surface_copy(surf, 0, 0, application_surface);
21
            }
22
        }
23
    };
24
}
25
surf = -4;
26
image_speed = 0;
27
image_index = 0;
28
backmarker = instance_create(x, y, obj_marker);
29
with (backmarker)
30
{
31
    depth = other.depth + 10;
32
    sprite_index = other.sprite_index;
33
    image_index = 1;
34
    image_speed = 0;
35
    
scr_darksize
scr_darksize

function
scr_darksize()
{ var inst = id; if (argument_count) inst = argument0; inst.image_xscale = 2; inst.image_yscale = 2; }
();
36
}
37
whirlwind = instance_create(x + 60, y + 48, obj_cliff_crater_whirlwind);
38
with (whirlwind)
39
{
40
    depth = other.depth + 8;
41
    active = true;
42
}
43
kr_ball = -4;
44
su_ball = -4;
45
ra_ball = -4;
46
umbrella = -4;
47
con = 0;
48
timer = 0;
49
altdraw_active = false;
50
enter = false;