Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_factory_02_seesaw_puzzle_Destroy_0

(view raw script w/o annotations or w/e)
1
if (seesaw_item_number <= 0)
2
{
3
    scr_audio_fade_out
scr_audio_fade_out

function scr_audio_fade_out(arg0, arg1) { var snd = arg0; var fade_len = arg1; if (!audio_is_playing(snd)) return false; audio_sound_gain(snd, 0, fade_len); if (instance_exists(obj_audio_fade_helper)) { with (obj_audio_fade_helper) { if (audio_to_fade == snd) return false; } } with (instance_create(0, 0, obj_audio_fade_helper)) audio_to_fade = snd; }
(218, 1500);
4
    instance_create(0, 0, obj_factory_02_seesaw_victory);
5
}
6
if (seesaw_item_number_wrong <= 0)
7
    instance_create(0, 0, obj_factory_02_seesaw_puzzle_recreator);
8
with (obj_factory_02_conveyor_indicator)
9
    sprite_index = spr_conveyor_indicator_idle;