Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_credits_ch5_castle_2f_Create_0

(view raw script w/o annotations or w/e)
1
_credits_audio = instance_find(obj_credits_ch5_audio, 0);
2
_credits_audio.add_event_listener(id);
3
global.interact = 1;
4
with (obj_mainchara)
5
{
6
    visible = false;
7
    x = 600;
8
    y = 280;
9
}
10
con = 0;
11
customcon = 0;
12
layer_set_visible("ASSETS_DOORS", false);
13
var door_kris = 
scr_marker
scr_marker

function
scr_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; } return thismarker; }
(159, 152, spr_dw_door_kris);
14
with (door_kris)
15
    
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
16
var door_susie = 
scr_marker
scr_marker

function
scr_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; } return thismarker; }
(344, 94, spr_dw_door_susie);
17
with (door_susie)
18
    
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
19
var door_noelle = 
scr_dark_marker
scr_dark_marker

function
scr_dark_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(535, 107, spr_dw_door_noelle);
20
with (door_noelle)
21
    
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
22
_lancer_marker = 
scr_dark_marker
scr_dark_marker

function
scr_dark_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(625, 223, spr_lancer_shovel_wipe);
23
with (_lancer_marker)
24
    
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
25
_susie_marker = 
scr_dark_marker
scr_dark_marker

function
scr_dark_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(544, 202, spr_susie_walk_back_hammer);
26
with (_susie_marker)
27
    
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
28
29
emit_event = function(arg0)
30
{
31
    if (arg0 != "timestamp_changed")
32
        exit;
33
    if (_credits_audio.get_timestamp() == 80.4)
34
    {
35
        _credits_audio.remove_event_listener(id);
36
        instance_create(0, 0, obj_persistentfadein);
37
        room_goto(room_dw_castle_rooms_susie );
38
    }
39
};