Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_steamworks_32_elevator_outside_Create_0

(view raw script w/o annotations or w/e)
1
image_speed = 0
2
scene = 0
3
cutscene_timer = 0
4
if (obj_pl.x > 760 && (!instance_exists(obj_overworld_fade_in_screen)))
5
{
6
    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 }
()
7
    instance_create(840, 270, obj_player_npc)
8
    obj_player_npc.image_alpha = 0
9
    obj_player_npc.npc_direction = "down"
10
    if (global.party_member != noone)
11
    {
12
        actor_follower = instance_create(840, 270, obj_ceroba_npc)
13
        actor_follower.image_alpha = 0
14
        actor_follower.npc_direction = "down"
15
        if instance_exists(global.party_member)
16
            instance_destroy(global.party_member)
17
    }
18
}
19
else
20
    scene = 8