Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_bullet_dashbar_Other_11

(view raw script w/o annotations or w/e)
1
var n = 1;
2
for (i = 0; i < 8; i++)
3
{
4
    o = instance_create(x, (y - 16) + (i * 4), obj_dashbar_part);
5
    o.image_xscale = n;
6
    o.image_yscale = n;
7
    n = -n;
8
    with (o)
9
        motion_set(irandom_range(-15, 15), random_range(6, 10));
10
    o = instance_create(x, (y - 16) + (i * 4), obj_dashbar_part);
11
    o.image_xscale = n;
12
    o.image_yscale = n;
13
    n = -n;
14
    with (o)
15
        motion_set(irandom_range(-15, 15), random_range(6, 10));
16
}
17
for (i = 0; i < 8; i++)
18
{
19
    o = instance_create(x + 4, (y - 16) + (i * 4), obj_dashbar_part);
20
    o.image_xscale = n;
21
    o.image_yscale = n;
22
    n = -n;
23
    with (o)
24
        motion_set(irandom_range(-15, 15), random_range(6, 10));
25
    o = instance_create(x + 4, (y - 16) + (i * 4), obj_dashbar_part);
26
    o.image_xscale = n;
27
    o.image_yscale = n;
28
    n = -n;
29
    with (o)
30
        motion_set(irandom_range(-15, 15), random_range(6, 10));
31
}
32
global.inv += 15;
33
with (obj_heart)
34
{
35
    dash_h += 1;
36
alarm[0]
37
}
38
instance_destroy();