Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_church_lantern_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 >= 40)
21
    {
22
        bulletcounter++;
23
        bullet = instance_create(x, y + 12, obj_overworld_lanternflame_arc);
24
        bullet.depth = depth - 5;
25
        bullet.targetx = 1900 + random(360);
26
        bullet.targety = 380;
27
        bullet = instance_create(x, y + 12, obj_overworld_lanternflame_arc);
28
        bullet.depth = depth - 5;
29
        bullet.targetx = 1900 + random(360);
30
        bullet.targety = 380;
31
        bullet = instance_create(x, y + 12, obj_overworld_lanternflame_arc);
32
        bullet.depth = depth - 5;
33
        bullet.targetx = 1900 + random(360);
34
        bullet.targety = 380;
35
        timer = 0;
36
    }
37
    if (i_ex(mylight))
38
    {
39
        mylight.smallerLight = lerp(mylight.smallerLight, 600, 0.25);
40
        mylight.biggerLight = (mylight.smallerLight * 1.1) + 7.5;
41
    }
42
}