Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_solid_temp_edge_Step_2

(view raw script w/o annotations or w/e)
1
var sendaway = true;
2
if (active)
3
{
4
    if (edge)
5
        sendaway = false;
6
    else
7
        sendaway = true;
8
    var _list = ds_list_create();
9
    var _num = instance_place_list(x, y, 264, _list, false);
10
    if (_num > 0)
11
    {
12
        for (var i = 0; i < _num; i++)
13
        {
14
            if (ds_list_find_value(_list, i).edge != edge)
15
                sendaway = true;
16
        }
17
    }
18
    ds_list_destroy(_list);
19
}
20
if (sendaway == false)
21
{
22
    with (mysolid)
23
    {
24
        x = other.x;
25
        y = other.y;
26
        image_xscale = other.image_xscale;
27
        image_yscale = other.image_yscale;
28
        image_angle = other.image_angle;
29
        sprite_index = other.sprite_index;
30
        image_index = other.image_index;
31
    }
32
}
33
else
34
{
35
    with (mysolid)
36
    {
37
        x = room_width + room_height;
38
        y = x;
39
    }
40
}