Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_musicalbullet_controller_Other_11

(view raw script w/o annotations or w/e)
1
var a = choose(0, 1);
2
if (forcedir == 1)
3
    a = 1;
4
if (forcedir == -1)
5
    a = 0;
6
if (a == 0)
7
{
8
    with (instance_nearest(x - 200, y, obj_musicenemy_boombox))
9
    {
10
        angleoffset = random(25);
11
        makebullet = 2;
12
    }
13
}
14
if (a == 1)
15
{
16
    with (instance_nearest(x + 200, y, obj_musicenemy_boombox))
17
    {
18
        angleoffset = random(25) * -1;
19
        makebullet = 2;
20
    }
21
}