Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_overworld_spade_Step_0

(view raw script w/o annotations or w/e)
1
timer += 1;
2
if (timer >= 2)
3
{
4
    if (image_alpha < 1)
5
        image_alpha += 0.1;
6
    if (image_alpha == 1)
7
        active = 1;
8
}
9
if (effect == 1)
10
{
11
    with (
scr_afterimage_grow
scr_afterimage_grow

function
scr_afterimage_grow()
{ afterimage = instance_create(x, y, obj_afterimage_grow); afterimage.sprite_index = sprite_index; afterimage.image_index = image_index; afterimage.image_blend = image_blend; afterimage.image_speed = 0; afterimage.depth = depth; afterimage.image_xscale = image_xscale; afterimage.image_yscale = image_yscale; afterimage.image_angle = image_angle; return afterimage; }
())
12
    {
13
        depth = other.depth + 1;
14
        xrate = -0.1;
15
        yrate = -0.1;
16
    }
17
}
18
if (room == 9999999)
19
{
20
    if (x > 680)
21
        instance_destroy();
22
    if (x < -40)
23
        instance_destroy();
24
}
25
else
26
{
27
    if (room == 9999999999999)
28
    {
29
        if (x >= (__view_get(e__VW.XView, 0) + 800))
30
            x -= 900;
31
        if (x <= (__view_get(e__VW.XView, 0) - 200))
32
            x += 900;
33
    }
34
    if (y > (__view_get(e__VW.YView, 0) + 600))
35
        instance_destroy();
36
    if (y < (__view_get(e__VW.YView, 0) - 800))
37
        instance_destroy();
38
}
39
40
enum e__VW
41
{
42
    XView,
43
    YView,
44
    WView,
45
    HView,
46
    Angle,
47
    HBorder,
48
    VBorder,
49
    HSpeed,
50
    VSpeed,
51
    Object,
52
    Visible,
53
    XPort,
54
    YPort,
55
    WPort,
56
    HPort,
57
    Camera,
58
    SurfaceID
59
}