Deltarune (Chapter Select) script viewer

← back to main script listing

gml_Object_obj_screen_transition_Step_0

(view raw script w/o annotations or w/e)
1
if (!_active)
2
    exit;
3
fadeout = lerp(fadeout, 0, 0.125);
4
xscale *= 0.95;
5
yscale *= 0.99;
6
yy *= 0.99;
7
if (_disable_timer)
8
    exit;
9
_timer--;
10
if (_timer <= 0)
11
{
12
    _disable_timer = true;
13
    if (global.is_console)
14
    {
15
        var _loading = instance_create(0, 0, obj_screen_loading);
16
        _loading.show_loading_screen(_target_chapter, _callback);
17
        _loading.depth = -1000;
18
    }
19
    else
20
    {
21
        _callback(_target_chapter);
22
    }
23
}