Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_dw_b3bs_rouxls_lanina_Step_0

(view raw script w/o annotations or w/e)
1
if (ver == 0)
2
{
3
    if (freeze == 0)
4
    {
5
        timer++;
6
        if ((timer % 8) == 0)
7
        {
8
            with (elnina)
9
            {
10
                image_speed = 0.125;
11
                with (instance_create_depth(x + 22, y, depth - 1, obj_board_crytear))
12
                {
13
                    image_blend = #5ACEDE;
14
                    image_xscale = 4;
15
                    image_yscale = 4;
16
                    gravity = 0.4;
17
                    vspeed = -2;
18
                    hspeed = 2;
19
                    
scr_doom
scr_doom

function
scr_doom(arg0, arg1)
{ with (instance_create_depth(0, 0, 0, obj_doom)) { alarm[0] target = arg0; } }
(id, 16);
20
                }
21
                with (instance_create_depth(x + 4, y, depth - 1, obj_board_crytear))
22
                {
23
                    image_blend = #5ACEDE;
24
                    image_xscale = 4;
25
                    image_yscale = 4;
26
                    gravity = 0.4;
27
                    vspeed = -2;
28
                    hspeed = -2;
29
                    
scr_doom
scr_doom

function
scr_doom(arg0, arg1)
{ with (instance_create_depth(0, 0, 0, obj_doom)) { alarm[0] target = arg0; } }
(id, 16);
30
                }
31
            }
32
            with (lanino)
33
            {
34
                image_speed = 0.125;
35
                with (instance_create_depth((x + 22) - 34, y + 12, depth - 1, obj_board_crytear))
36
                {
37
                    image_blend = #5ACEDE;
38
                    image_xscale = 4;
39
                    image_yscale = 4;
40
                    gravity = 0.4;
41
                    vspeed = -2;
42
                    hspeed = 2;
43
                    
scr_doom
scr_doom

function
scr_doom(arg0, arg1)
{ with (instance_create_depth(0, 0, 0, obj_doom)) { alarm[0] target = arg0; } }
(id, 16);
44
                }
45
                with (instance_create_depth((x + 4) - 34, y + 12, depth - 1, obj_board_crytear))
46
                {
47
                    image_blend = #5ACEDE;
48
                    image_xscale = 4;
49
                    image_yscale = 4;
50
                    gravity = 0.4;
51
                    vspeed = -2;
52
                    hspeed = -2;
53
                    
scr_doom
scr_doom

function
scr_doom(arg0, arg1)
{ with (instance_create_depth(0, 0, 0, obj_doom)) { alarm[0] target = arg0; } }
(id, 16);
54
                }
55
            }
56
        }
57
    }
58
    if (freeze == 1)
59
    {
60
        lanino.image_speed = 0;
61
        elnina.image_speed = 0;
62
    }
63
}
64
if (ver == 1)
65
{
66
    if (global.flag[1106 did_cut_weather_puz] == 0)
67
    {
68
        if (puz.solved == 1)
69
        {
70
            safe_delete(puz);
71
            global.flag[1106 did_cut_weather_puz] = 1;
72
        }
73
    }
74
}
75
with (obj_board_watertile)
76
    active = true;