Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_bug_treasure_chest_Other_10

(view raw script w/o annotations or w/e)
1
with (obj_darkcontroller)
2
    charcon = 0;
3
global.msc = 0;
4
global.typer = 5;
5
if (global.darkzone == 1)
6
    global.typer = 6;
7
global.fc = 0;
8
global.fe = 0;
9
global.interact = 1;
10
if (image_index == 0)
11
{
12
    snd_play(snd_locker);
13
    for (var i = 0; i < 5; i++)
14
    {
15
        bug[i] = instance_create(x + 20, y + 20, obj_tinybug);
16
        bug[i].direction = random(180);
17
        bug[i].speed = random(2) + 4;
18
        bug[i].sprite_index = spr_tinybug;
19
        bug[i].depth = depth - 1;
20
    }
21
}
22
image_index = 1;
23
myinteract = 1;
24
global.interact = 0;