Deltarune (Chapter 1) script viewer

← back to main script listing

gml_Object_obj_darkponman_ow_Create_0

(view raw script w/o annotations or w/e)
1
global.charinstance[0] = obj_mainchara;
2
global.charinstance[1] = global.cinstance[0];
3
global.charinstance[2] = global.cinstance[1];
4
boss = 0;
5
if (instance_find(object_index, 0) == id)
6
{
7
    boss = 1;
8
    depth += 1;
9
}
10
battlealpha = 0;
11
max_battlealpha = 1;
12
image_xscale = 2;
13
image_yscale = 2;
14
rot = 0;
15
init = 0;
16
con = 0;
17
timer = 0;
18
eyer = 0;
19
image_speed = 0;
20
rotspeed = 4;
21
tile_fade = 0;
22
tile_layer_choice = 222222;
23
if (room == room_forest_area2)
24
{
25
    if (x >= (room_width / 2))
26
    {
27
        rotspeed = -4;
28
        rot = 180;
29
    }
30
    tile_fade = 1;
31
    tile_layer_choice = 222222;
32
}
33
bmax = 8;
34
made = 0;
35
offx = 30;
36
offy = 30;
37
xrange = 300;
38
yrange = 240;
39
if (room == room_forest_area5)
40
{
41
    rotspeed = 2.5;
42
    bmax = 11;
43
    xrange = 300;
44
    yrange = 280;
45
    tile_fade = 1;
46
    tile_layer_choice = 222222;
47
}
48
if (room == room_cc_2f)
49
{
50
    rotspeed = 3;
51
    bmax = 8;
52
    yrange = 280;
53
    if (x >= 800 && y <= 800)
54
    {
55
        rotspeed = -3;
56
        rot = 180;
57
    }
58
    if (x <= 800 && y >= 800)
59
    {
60
        rotspeed = -3;
61
        rot = 180;
62
    }
63
    tile_fade = 1;
64
    tile_layer_choice = 222222;
65
}
66
if (tile_fade == 1 && boss == 1)
67
{
68
    alpha_changed = 0;
69
    tile_fade = 1;
70
    tilearray = tile_get_ids_at_depth(tile_layer_choice);
71
    for (var i = 0; i < array_length_1d(tilearray); i++)
72
        tile_set_alpha(tilearray[i], 0);
73
}
74
xx = 0;
75
yy = 0;
76
siner = 0;