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;
gml_Object_obj_steamworks_manta_fade_Alarm_0.gml

with (other) { state = 1; if (obj_steamworks_manta.manta_has_passengers == false) { obj_steamworks_manta.manta_has_passengers = true; __view_set(e__VW.Object, 0, obj_steamworks_manta); } else { with (obj_steamworks_manta) event_perform(ev_create, 0); __view_set(e__VW.Object, 0, obj_pl); obj_pl.x = dock_x; obj_pl.y = dock_y; if (global.party_member != -4) { scr_actor_into_follower(1161, 1171); global.party_member.x = dock_x; global.party_member.y = dock_y; } } } enum e__VW { XView, YView, WView, HView, Angle, HBorder, VBorder, HSpeed, VSpeed, Object, Visible, XPort, YPort, WPort, HPort, Camera, SurfaceID }
7
}
8
if (state == 1)
9
{
10
    if (draw_alpha > 0)
11
    {
12
        draw_alpha -= 0.2;
13
    }
14
    else
15
    {
16
        if (obj_steamworks_manta.manta_has_passengers == false)
17
            scr_cutscene_end
scr_cutscene_end

function scr_cutscene_end() { global.cutscene = false; obj_pl.alarm[0] = 1; }
();
18
        instance_destroy();
19
    }
20
}