1 |
if (conveyor_item_number <= 0) |
2 |
{ |
3 |
scr_audio_fade_outscr_audio_fade_outfunction scr_audio_fade_out(argument0, argument1) //gml_Script_scr_audio_fade_out
{
var snd = argument0
var fade_len = argument1
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
} (mus_build_a_bot, 1500) |
4 |
instance_create(0, 0, obj_factory_02_conveyor_victory) |
5 |
} |
6 |
if (conveyor_item_number_wrong <= 0) |
7 |
instance_create(0, 0, obj_factory_02_conveyor_puzzle_recreator) |
8 |
layer_set_visible("MachineFront", false) |
9 |
with (obj_factory_02_conveyor_indicator) |
10 |
sprite_index = spr_conveyor_indicator_idle |