Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_titan_fight_explosion_Step_0

(view raw script w/o annotations or w/e)
1
if (con == 0)
2
{
3
    timer += 1;
4
    if (timer == 8)
5
    {
6
        for (i = 1; i < 15; i++)
7
        {
8
            var ball = instance_create(x, y, obj_titan_fight_explosion_ball);
9
            ball.vspeed = random_range(-15, -2);
10
            ball.hspeed = random_range(minh, maxh);
11
            ball.depth = depth;
12
        }
13
    }
14
    if (!endless && timer > 30)
15
        con = 1;
16
    if (timer > 15 && (timer % 2) == 0)
17
    {
18
        var ball = instance_create(x, y, obj_titan_fight_explosion_ball);
19
        ball.vspeed = random_range(-20, -2);
20
        ball.hspeed = random_range(minh, maxh);
21
        ball.depth = depth;
22
    }
23
}
24
if (con == 1)
25
    instance_destroy();