Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_savepoint_Step_0

(view raw script w/o annotations or w/e)
1
if (myinteract == 3)
2
{
3
    if (i_ex(mydialoguer) == false)
4
    {
5
        instance_create(0, 0, obj_savemenu);
6
        myinteract = 0;
7
    }
8
}
9
if (global.darkzone == 0)
10
{
11
    image_alpha = 0.5;
12
    if (instance_exists(obj_mainchara))
13
    {
14
        var dist = distance_to_object_bbox(id, 1049);
15
        if (dist <= 40)
16
            image_alpha = (1 - (dist / 40)) + 0.5;
17
    }
18
}