var hideGreen = false; with (tableright) { if (sprite_index == spr_enemy_green_walk) hideGreen = true; } with (tableleft) { if (sprite_index == spr_enemy_green_walk) hideGreen = true; } if (instance_exists(obj_cutscene_master)) hideGreen = true; with (npcGreen) { with (marker) image_alpha = lerp(image_alpha, !hideGreen * 1.2, 1/3); if (myinteract == 3 && canwave) { canwave = false; myinteract = 4; var endseq = function() { with (marker) { sprite_index = spr_enemy_green_walk; image_index = 0; image_speed = 0; } canwave = true; myinteract = 0; }; with (marker) { sprite_index = spr_enemy_green_wave; var wl = function() { snd_play(snd_xylophone_blink, undefined, 1.375); image_index = 1; }; var wr = function() { snd_play(snd_xylophone_blink, undefined, 1); image_index = 0; }; wl(); delay_function(wr, 8); delay_function(wl, 16); delay_function(wr, 24); with (other) delay_function(endseq, 32); } } }