Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_ch3_BTB05_Create_0

(view raw script w/o annotations or w/e)
1
con = -1;
2
customcon = 0;
3
blackall = 
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; }
(-10, -10, spr_pixel_white);
4
blackall.image_xscale = 999;
5
blackall.image_yscale = 999;
6
blackall.depth = 10000;
7
create_writer = false;
8
speech_index = 0;
9
if (!snd_is_playing(global.currentsong[1]))
10
{
11
    global.currentsong[0] = snd_init("flashback_excerpt.ogg");
12
    global.currentsong[1] = mus_loop(global.currentsong[0]);
13
}
14
if (global.plot < 300)
15
{
16
    con = 0;
17
    wind_song[0] = -4;
18
    wind_song[1] = -4;
19
    carol_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; }
(1156, 262, spr_sepia_carol_silhouette);
20
    with (carol_marker)
21
        
scr_depth
scr_depth

function
scr_depth()
{ if (argument_count > 0) { with (argument0) depth = 100000 - ((y * 10) + (sprite_height * 10)); } else { depth = 100000 - ((y * 10) + (sprite_height * 10)); } }
();
22
    rudy_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; }
(1110, 260, spr_sepia_rudy_silhouette);
23
    with (rudy_marker)
24
        
scr_depth
scr_depth

function
scr_depth()
{ if (argument_count > 0) { with (argument0) depth = 100000 - ((y * 10) + (sprite_height * 10)); } else { depth = 100000 - ((y * 10) + (sprite_height * 10)); } }
();
25
    asgore_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; }
(750, 244, spr_sepia_asgore_silhouette);
26
    with (asgore_marker)
27
        
scr_depth
scr_depth

function
scr_depth()
{ if (argument_count > 0) { with (argument0) depth = 100000 - ((y * 10) + (sprite_height * 10)); } else { depth = 100000 - ((y * 10) + (sprite_height * 10)); } }
();
28
    toriel_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; }
(850, 260, spr_sepia_toriel_silhouette);
29
    with (toriel_marker)
30
        
scr_depth
scr_depth

function
scr_depth()
{ if (argument_count > 0) { with (argument0) depth = 100000 - ((y * 10) + (sprite_height * 10)); } else { depth = 100000 - ((y * 10) + (sprite_height * 10)); } }
();
31
    dess_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; }
(960, 243, spr_sepia_dess_silhouette);
32
    with (dess_marker)
33
        
scr_depth
scr_depth

function
scr_depth()
{ if (argument_count > 0) { with (argument0) depth = 100000 - ((y * 10) + (sprite_height * 10)); } else { depth = 100000 - ((y * 10) + (sprite_height * 10)); } }
();
34
    asriel_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; }
(916, 262, spr_sepia_asriel_silhouette);
35
    with (asriel_marker)
36
        
scr_depth
scr_depth

function
scr_depth()
{ if (argument_count > 0) { with (argument0) depth = 100000 - ((y * 10) + (sprite_height * 10)); } else { depth = 100000 - ((y * 10) + (sprite_height * 10)); } }
();
37
    kris_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; }
(1015, 282, spr_sepia_kris_silhouette);
38
    with (kris_marker)
39
        
scr_depth
scr_depth

function
scr_depth()
{ if (argument_count > 0) { with (argument0) depth = 100000 - ((y * 10) + (sprite_height * 10)); } else { depth = 100000 - ((y * 10) + (sprite_height * 10)); } }
();
40
    noelle_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; }
(1054, 278, spr_sepia_noelle_silhouette);
41
    with (noelle_marker)
42
        
scr_depth
scr_depth

function
scr_depth()
{ if (argument_count > 0) { with (argument0) depth = 100000 - ((y * 10) + (sprite_height * 10)); } else { depth = 100000 - ((y * 10) + (sprite_height * 10)); } }
();
43
    tv_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; }
(280, 228, spr_sepia_room_tv);
44
    tv_marker.depth = blackall.depth - 10;
45
    tv_marker.visible = 0;
46
    tv_stand_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; }
((view_wport[0] / 2) - sprite_get_width(spr_sepia_tv_stand), 172, spr_sepia_tv_stand);
47
    tv_stand_marker.depth = tv_marker.depth - 5;
48
    tv_stand_marker.visible = 0;
49
    tv_smile_bg_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; }
(tv_stand_marker.x + 18, tv_stand_marker.y + 44, spr_sepia_tv_static);
50
    tv_smile_bg_marker.depth = tv_marker.depth - 10;
51
    tv_smile_bg_marker.image_speed = 0.2;
52
    tv_smile_bg_marker.visible = 0;
53
    tv_smile_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; }
(tv_smile_bg_marker.x + 5, tv_smile_bg_marker.y + 8, spr_sepia_tv_smile);
54
    tv_smile_marker.depth = tv_smile_bg_marker.depth - 10;
55
    tv_smile_marker.visible = 0;
56
    obj_mainchara.y = cameray() - 200;
57
    scr_lerp_instance_var(blackall, "image_alpha", 1, 0, 60);
58
}
59
else
60
{
61
    instance_destroy();
62
}