Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_intro_ch4_Create_0

(view raw script w/o annotations or w/e)
1
if (scr_is_switch_os())
2
    instance_create_depth(0, 0, 0, obj_switchAsyncHelper);
3
con = 0;
4
timer = 0;
5
bgm = -1;
6
bgm_pos = 0;
7
debug_force_nofiles = false;
8
skip_time = 10;
9
skip_safety = 0;
10
snd_free_all();
11
var CH = string(global.chapter);
12
files_exist = ossafe_file_exists("filech" + CH + "_0") || ossafe_file_exists("filech" + CH + "_1") || ossafe_file_exists("filech" + CH + "_2") || ossafe_file_exists("filech" + CH + "_3");
13
init = 0;
14
type = 0;
15
room_center_x = room_width * 0.5;
16
room_center_y = room_height * 0.5;
17
logo_heart = 
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; }
(room_center_x, room_center_y, IMAGE_LOGO_CENTER_HEART_SEPARATED);
18
logo_heart.image_alpha = 0;
19
logo_heart.depth = 19800;
20
logo_heart.image_xscale = 2;
21
logo_heart.image_yscale = 2;
22
logo_all = 
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; }
(room_center_x, room_center_y, IMAGE_LOGO_CENTER_HEART_SEPARATED);
23
logo_all.image_alpha = 0;
24
logo_all.image_index = 1;
25
logo_all.depth = 19900;
26
logo_all.image_xscale = 2;
27
logo_all.image_yscale = 2;
28
logo_prophecy = 
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; }
(room_center_x, room_center_y + 60, spr_dw_church_prophecy_final_icon_w);
29
logo_prophecy.image_alpha = 0;
30
logo_prophecy.image_index = 0;
31
logo_prophecy.depth = 19900;
32
logo_prophecy.image_xscale = 2;
33
logo_prophecy.image_yscale = 2;
34
prophecy_effect = instance_create_depth(0, 0, 19850, obj_texturescroller_prophecy);
35
prophecy_effect.tile_object = logo_all;
36
prophecy_effect.image_alpha = 0;
37
prophecy_effect.intro_mode = true;
38
prophecy_effect_scroll_speed = 2;
39
prophecy_effect.scroll_speed = prophecy_effect_scroll_speed;
40
black_all = 
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; }
(0, 0, spr_pixel_white);
41
black_all.image_blend = c_black;
42
black_all.depth = -999;
43
black_all.image_xscale = 500;
44
black_all.image_yscale = 500;
45
black_all.visible = false;
46
black_all.image_alpha = 1;
47
chapter4_text_alpha = 0;
48
break_noise = snd_init("ch4_first_intro_breaking.ogg");