Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_dw_castle_church_entrance_Step_0

related scripts: Create_0Draw_0Other_11Other_15Step_0 Step_1Step_2

(view raw script w/o annotations or w/e)
1
with (kk.marker)
2
{
3
    dance = function()
4
    {
5
        timer = 0;
6
        con = 1;
7
        with (scr_marker_fancy(x + 68 + (irandom_range(-6, 6) * 2), y + 10 + (irandom_range(-6, 6) * 2), 3163))
8
        {
9
            image_alpha = 3;
10
            var xpos = right_h() - left_h();
11
            var ypos = down_h() - up_h();
12
            hspeed = random_range(0, 3) * sign(xpos);
13
            vspeed = random_range(-4, -5) + ypos;
14
            gravity = 0.25;
15
            
16
            step_func = function()
17
            {
18
                image_alpha *= 0.8;
19
                if (image_alpha <= 0.1)
20
                    instance_destroy();
21
            };
22
        }
23
    };
24
}
25
with (sweet.marker)
26
{
27
    dance = function()
28
    {
29
        timer = 0;
30
        con = 1;
31
        with (scr_marker_fancy(x + 2 + (irandom_range(-6, 6) * 2), y + 12 + (irandom_range(-6, 6) * 2), 3163))
32
        {
33
            image_alpha = 3;
34
            var xpos = right_h() - left_h();
35
            var ypos = down_h() - up_h();
36
            hspeed = random_range(0, 3) * sign(xpos);
37
            vspeed = random_range(-4, -5) + ypos;
38
            gravity = 0.25;
39
            
40
            step_func = function()
41
            {
42
                image_alpha *= 0.8;
43
                if (image_alpha <= 0.1)
44
                    instance_destroy();
45
            };
46
        }
47
    };
48
}
49
scr_populatechars
scr_populatechars

function
scr_populatechars()
{ if (!variable_instance_exists(id, "kris")) kris = 0; if (!variable_instance_exists(id, "ralsei")) ralsei = 0; if (!variable_instance_exists(id, "susie")) susie = 0; if (!variable_instance_exists(id, "noelle")) noelle = 0; if (kris == 0) { with (obj_mainchara) other.kris = id; } if (susie == 0) { with (obj_caterpillarchara) { if (name == "susie") other.susie = id; } } if (ralsei == 0) { with (obj_caterpillarchara) { if (name == "ralsei") other.ralsei = id; } } if (noelle == 0) { with (obj_caterpillarchara) { if (name == "noelle") other.noelle = id; } } }
();
50
if (!init)
51
    init = 1;
52
event_user(5);