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() { global.cutscene = true; obj_pl.state = scr_frozen_state; obj_pl.image_index = 0; obj_pl.image_speed = 0; }
();
2
obj_pl.image_alpha = 0;
3
if (global.party_member != -4 && instance_exists(global.party_member))
4
    global.party_member.image_alpha = 0;
5
instance_create(__view_get(e__VW.XView, 0), __view_get(e__VW.YView, 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
    exit;
17
with (obj_radio)
18
{
19
    music_position = audio_sound_get_track_position(current_song);
20
    audio_stop_sound(bgm);
21
}
22
23
enum e__VW
24
{
25
    XView,
26
    YView,
27
    WView,
28
    HView,
29
    Angle,
30
    HBorder,
31
    VBorder,
32
    HSpeed,
33
    VSpeed,
34
    Object,
35
    Visible,
36
    XPort,
37
    YPort,
38
    WPort,
39
    HPort,
40
    Camera,
41
    SurfaceID
42
}