Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_climb_flamegenerator_Step_0

(view raw script w/o annotations or w/e)
1
if (!init)
2
{
3
    rate = r_rate;
4
    timer = r_timer;
5
    dir = r_dir;
6
    movespeed = r_movespeed;
7
    lifetime = r_lifetime;
8
    init = 1;
9
}
10
if (active)
11
{
12
    if (global.interact == 0)
13
    {
14
        timer++;
15
        if ((timer % rate) == 0)
16
        {
17
            var bul = instance_create(x + 20, y + 20, obj_climb_flamefalling);
18
            bul.dir = dir;
19
            bul.movespeed = movespeed;
20
            bul.lifetime = lifetime;
21
        }
22
    }
23
}