Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_heart_initiate_battle_Create_0

(view raw script w/o annotations or w/e)
1
scr_cutscene_start
scr_cutscene_start

function scr_cutscene_start() //gml_Script_scr_cutscene_start { global.cutscene = true obj_pl.state = gml_Script_scr_frozen_state obj_pl.image_index = 0 obj_pl.image_speed = 0 }
()
2
obj_pl.image_alpha = 0
3
if (global.party_member != noone && instance_exists(global.party_member))
4
    global.party_member.image_alpha = 0
5
instance_create(__view_get((0 << 0), 0), __view_get((1 << 0), 0), obj_blackout_overworld_2)
6
flash_count = 0
7
flash_delay = 2
8
start_delay = 5
9
no_loop = false
10
no_loop_2 = false
11
draw_player_sprite = true
12
image_alpha = 0
13
x_override = 0
14
y_override = 0
15
if (global.sound_carry_overworld == true)
16
    return;
17
with (obj_radio)
18
{
19
    music_position = audio_sound_get_track_position(current_song)
20
    audio_stop_sound(bgm)
21
}