Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_forcefield_Create_0

(view raw script w/o annotations or w/e)
1
myinteract = 0;
2
if (image_xscale < 2)
3
    image_xscale = 2;
4
if (image_yscale < 2)
5
    image_yscale = 2;
6
alarm[3]
 = 1;
gml_Object_obj_forcefield_Alarm_3.gml

solid1 = instance_create(x, y, obj_solidblock); solid1.image_yscale = image_yscale; solid1.image_xscale = image_xscale; sold = 1;
7
siner = 0;
8
basic = 1;
9
disable = 0;
10
f = 2;
11
sold = 0;
12
black_override = 0;
13
stayVisible = 0;
14
skip = 0;
15
ignorealpha = 0;
16
if (room != room_dw_city_mice2)
17
    depth = 900000;
18
if (disableflag > 0)
19
{
20
    if (global.flag[disableflag] == 1)
21
    {
22
        instance_destroy();
23
        exit;
24
    }
25
}
26
if (disableplot > 0)
27
{
28
    if (global.plot >= disableplot)
29
    {
30
        instance_destroy();
31
        exit;
32
    }
33
}
34
if (global.chapter == 2)
35
{
36
    if (room == room_dw_cyber_musical_door)
37
    {
38
        visible = 0;
39
        instance_create(x + (sprite_width / 2), y, obj_beatbullet_wall);
40
    }
41
    if (room == room_dw_city_mice2)
42
    {
43
        stayVisible = 1;
44
        depth = 5000;
45
        if (global.flag[368 solved_mice_2] == 1)
46
            instance_destroy();
47
    }
48
    if (room == room_dw_mansion_b_central)
49
        stayVisible = 1;
50
}