if (scr_is_switch_os()) instance_create_depth(0, 0, 0, obj_switchAsyncHelper); if (i_ex(obj_credits_ch5_audio)) { with (obj_credits_ch5_audio) clean_up(); } _credits_audio = instance_create(0, 0, obj_credits_ch5_audio); _credits_audio.add_event_listener(id); _active = true; con = 0; timer = 0; lyric = stringset(" "); textalpha = 1; creditalpha = 1; trackpos = 0; modifier = 0; song1 = 0; menugray = hexcolor(#949494); y_pos = __view_get(e__VW.YView, 0); x_pos = __view_get(e__VW.XView, 0) + (__view_get(e__VW.WView, 0) / 2); line_height = 20; title_credit[0] = stringsetloc("DELTARUNE", "obj_credits_ch5_slash_Create_0_gml_20_0"); title_credit[1] = stringsetloc("Chapter 5", "obj_credits_ch5_slash_Create_0_gml_21_0"); title_credit[2] = stringset(" "); title_credit[3] = stringsetloc("by Toby Fox", "obj_credits_ch5_slash_Create_0_gml_23_0"); continued_text[0] = stringset(" "); continued_text[1] = stringset(" "); continued_text[2] = stringset(" "); continued_text[3] = stringset(" "); year_alpha = 0; credit_index = -1; credits = generate_credits(); credits_con = 0; paused = false; start_visuals = function() { with (obj_mainchara) visible = 0; var transition = instance_create(camerax() + (view_wport[0] / 2), cameray() + (view_hport[0] / 2), obj_credits_ch5_transition); with (transition) { nextroom = 53; quick_mode = 1; skiprunback = 1; } }; if (global.plot >= 590) { con = -1; start_visuals(); } emit_event = function(arg0) { if (arg0 != "timestamp_changed") exit; if (credit_index < (array_length(credits) - 1)) { credit_index++; } else { _credits_audio.remove_event_listener(id); _active = false; global.plot = 590; start_visuals(); } }; enum e__VW { XView, YView, WView, HView, Angle, HBorder, VBorder, HSpeed, VSpeed, Object, Visible, XPort, YPort, WPort, HPort, Camera, SurfaceID }