Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_church_lantern_arc_Other_25

(view raw script w/o annotations or w/e)
1
if (init == 0)
2
{
3
    with (obj_overworld_bulletarea)
4
        y = room_height * 2;
5
    init = 1;
6
}
7
siner++;
8
fakey = -18 - (sin(siner / 6) * 2);
9
if (con == 0)
10
    timer = 0;
11
if (con == 1)
12
{
13
    if (init == 1)
14
    {
15
        with (obj_overworld_bulletarea)
16
            y = ystart;
17
        init = 2;
18
    }
19
    timer++;
20
    if (timer >= 50)
21
    {
22
        bulletcounter++;
23
        repeat (3)
24
        {
25
            bullet = instance_create(x, y + 12, obj_overworld_lanternflame_arc);
26
            bullet.depth = depth - 5;
27
            bullet.targetx = 1800 + random(460);
28
            bullet.targety = 380;
29
            bullet = instance_create(x, y + 12, obj_overworld_lanternflame_arc);
30
            bullet.depth = depth - 5;
31
            bullet.targetx = 1800 + random(460);
32
            bullet.targety = 380;
33
            bullet = instance_create(x, y + 12, obj_overworld_lanternflame_arc);
34
            bullet.depth = depth - 5;
35
            bullet.targetx = 1800 + random(460);
36
            bullet.targety = 380;
37
        }
38
        timer = 0;
39
    }
40
    if (i_ex(mylight))
41
    {
42
        mylight.smallerLight = lerp(mylight.smallerLight, 1120, 0.25);
43
        mylight.biggerLight = (mylight.smallerLight * 1.1) + 20;
44
    }
45
}