Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_steamworks_manta_fade_Step_0

(view raw script w/o annotations or w/e)
1
if (state == 0)
2
{
3
    if (draw_alpha < 1)
4
        draw_alpha += 0.15
5
    else if (!alarm[0])
6
        alarm[0] = 30
alarm[0]

with (other) { state = 1 if (obj_steamworks_manta.manta_has_passengers == false) { obj_steamworks_manta.manta_has_passengers = true __view_set((9 << 0), 0, 2053) } else { with (obj_steamworks_manta) event_perform(ev_create, 0) __view_set((9 << 0), 0, 1031) obj_pl.x = dock_x obj_pl.y = dock_y if (global.party_member != noone) { scr_actor_into_follower(obj_ceroba_npc, obj_ceroba_follower) global.party_member.x = dock_x global.party_member.y = dock_y } } }
7
}
8
if (state == 1)
9
{
10
    if (draw_alpha > 0)
11
        draw_alpha -= 0.2
12
    else
13
    {
14
        if (obj_steamworks_manta.manta_has_passengers == false)
15
            scr_cutscene_end
scr_cutscene_end

function scr_cutscene_end() //gml_Script_scr_cutscene_end { global.cutscene = false obj_pl.alarm[0] = 1 }
()
16
        instance_destroy()
17
    }
18
}