Deltarune script viewer

← back to main script listing

gml_Object_obj_ch2_scene24e_Create_0

(view raw script w/o annotations or w/e)
1
con = -1;
2
customcon = 0;
3
if (global.chapter != 2 || global.flag[319 ferris_scene_plot] < 2 || global.plot >= 160)
4
{
5
    if (global.plot >= 160)
6
    {
7
        var savepoint = instance_create(460, 720, obj_savepoint);
8
        with (savepoint)
9
            scr_depth
scr_depth

function scr_depth() { depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
10
    }
11
    instance_destroy();
12
}