event_inherited(); switch (phase) { case 1: pattern_time++; audience_popout *= 0.9; if (audience_popout > -0.1 && audience_popout < 0.1) audience_popout = 0; hater_popout *= 0.9; if (hater_popout > -0.1 && hater_popout < 0.1) hater_popout = 0; if (pattern_time >= 20) { if (audience_hater == 0) { if (audience_shoottime > 0) { audience_shoottime -= 1; } else if (audience_shoottime == 0) { var _shot = instance_create_depth(x, y, depth - 2, obj_audienceheart); _shot.speed = 1; _shot.pattern_time = -irandom(4); _shot.direction = image_angle + 90; audience_shoottime = -1; } } } if (pattern_time == 55) { if (audience_hater == 1) { var _shot = instance_create_depth(x, y, depth - 6, obj_audiencehater); _shot.image_angle = lengthdir_y(30, other.audience_angle); _shot.image_angle += image_angle; instance_destroy(); } } if (pattern_time >= 60) { audience_popout = -0.1; pattern_time = 0; phase++; } break; case 2: pattern_time++; audience_popout = clamp(audience_popout * 1.25, -40, 40); if (pattern_time >= 30) { audience_popout = 0; hater_popout = 0; instance_destroy(); } break; } audience_y += 18; if (audience_y >= 360) audience_y -= 360; audience_angle += audience_sway; if (audience_angle >= 360) audience_angle -= 360; var _jump, _popout; if (audience_hater == 0) { _jump = 10; _popout = audience_popout; var _curtainpeek = 0; } else { _jump = 5; _popout = hater_popout; var _curtainpeek = 6; } if (image_angle == 270) { x = start_x + abs(lengthdir_y(_jump, audience_y)) + _popout; y = start_y; } else if (image_angle == 0) { x = start_x; y = start_y - abs(lengthdir_y(_jump, audience_y)) - _popout; } else if (image_angle == 90) { x = start_x - abs(lengthdir_y(_jump, audience_y)) - _popout; y = start_y; }