Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_savepoint_Step_0

related scripts: Create_0Other_10Step_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
image_alpha = 1 - array_get(
scr_platswap_yscale
scr_platswap_yscale

function
scr_platswap_yscale()
{ with (obj_platswap) return __transition_yscale; return [0, 1]; }
(), 0) - cutscene_fade;
10
if (global.darkzone == 0)
11
{
12
    image_alpha = 0.5;
13
    if (instance_exists(obj_mainchara))
14
    {
15
        var dist = distance_to_object_bbox(id, 1198);
16
        if (dist <= 40)
17
            image_alpha = (1 - (dist / 40)) + 0.5;
18
    }
19
}