var spawn = choose("spinners","meteors","bees") sound_play(snd_newwave) switch spawn { case "spinners": var make = 6 if rank <= 5 make = 4 if rank <= 3 make = 2 repeat(make) { instance_create(room_width/2 + random(900) * cos(35+random(20)),room_height/2 + random(900) * sin(35+random(20)),obj_spinner) instance_create(room_width/2 + random(900) * cos(125+random(20)),room_height/2 + random(900) * sin(125+random(20)),obj_spinner) instance_create(room_width/2 + random(900) * cos(215+random(20)),room_height/2 + random(900) * sin(215+random(20)),obj_spinner) instance_create(room_width/2 + random(900) * cos(305+random(20)),room_height/2 + random(900) * sin(305+random(20)),obj_spinner) } break; case "meteors": var make = 1 if rank <= 5 make = 1 if rank <= 3 make = 1 repeat (make) { instance_create(room_width/2 + random(900) * cos(35+random(20)),room_height/2 + random(900) * sin(35+random(20)),obj_meteorlarge) instance_create(room_width/2 + random(900) * cos(125+random(20)),room_height/2 + random(900) * sin(125+random(20)),obj_meteorlarge) instance_create(room_width/2 + random(900) * cos(215+random(20)),room_height/2 + random(900) * sin(215+random(20)),obj_meteorlarge) instance_create(room_width/2 + random(900) * cos(305+random(20)),room_height/2 + random(900) * sin(305+random(20)),obj_meteorlarge) } break; case "bees": var make = 10 if rank <= 5 make = 5 if rank <= 3 make = 3 repeat (make) { instance_create(room_width/2 + random(900) * cos(35+random(20)),room_height/2 + random(900) * sin(35+random(20)),obj_bees) instance_create(room_width/2 + random(900) * cos(125+random(20)),room_height/2 + random(900) * sin(125+random(20)),obj_bees) instance_create(room_width/2 + random(900) * cos(215+random(20)),room_height/2 + random(900) * sin(215+random(20)),obj_bees) instance_create(room_width/2 + random(900) * cos(305+random(20)),room_height/2 + random(900) * sin(305+random(20)),obj_bees) } break; default: break; } alarm[2] = 150 - (5*rank) if alarm[2] < 45 { alarm[2] = 30 }