after_image_active = false; after_image_timer = 0; if (scr_debug()) audio_stop_sound(snd_deep_noise); _window_marker = scr_marker(x, y, spr_flowerking_window_flash); with (_window_marker) { depth = 98700; image_index = 0; image_speed = 0.2; image_alpha = 0; visible = 0; } _window_negative = scr_marker(x, y, spr_flowerking_window_negative); with (_window_negative) { depth = 98699; image_index = 0; image_alpha = 0; visible = 0; } start = function() { snd_play(snd_fountain_make_mini); with (_window_marker) { visible = 1; scr_lerpvar("image_alpha", 0, 1, 15); scr_lerpvar("image_speed", 0, 0.7, 15); } }; switch_windows = function() { audio_play_sound(snd_deep_noise, 50, 1); with (_window_marker) { scr_lerpvar("image_alpha", 1, 0, 20); scr_lerpvar("image_speed", 0.7, 0, 20); scr_delay_var("visible", false, 21); } with (_window_negative) { visible = 1; scr_lerpvar("image_alpha", 0, 1, 20); } scr_delay_var("after_image_active", true, 21); }; fade_out = function() { audio_sound_gain(snd_deep_noise, 0, 1000); }; clean_up = function() { audio_stop_sound(snd_deep_noise); };