q = 0; s2 += 0.2; repeat (num) { greg = degtorad((q * 360) / num); if (instance_exists(kid[q])) { kid[q].x = (x + (sin(greg + s2) * sf2)) - 10; kid[q].y = (y + (cos(greg + s2) * sf2)) - 10; } q += 1; } if (movetype == 0) { x = xstart + (sin(s / sp) * sf); y = ystart + ((sin((s / sp) * 2) * sf) / 3); if (shake == 0) s += 1; if (shake > 0) { x = (memx + random(shake * 2)) - shake; y = (memy + random(shake * 2)) - shake; shake -= 1; } } lightning_timer += 1; if (lightning_timer > 40 && lightning_timer < 50) { ddir = random(360); image_speed = 0.5; } if (lightning_timer == 50) { image_speed = 0; i = 0; repeat (11) { lt = instance_create(x, y, obj_mettlightning_pl); if (instance_exists(lt)) { lt.speed = 2; lt.friction = -0.09; lt.direction = 0 + ((i * 360) / 11) + ddir; } i += 1; } } if (lightning_timer == 56) { image_speed = 0; i = 0; repeat (11) { lt = instance_create(x, y, obj_mettlightning_pl); if (instance_exists(lt)) { lt.speed = 2; lt.friction = -0.09; lt.direction = 0 + (((i + 0.5) * 360) / 11) + ddir; } i += 1; } } if (lightning_timer == 62) { image_speed = 0; i = 0; repeat (11) { lt = instance_create(x, y, obj_mettlightning_pl); if (instance_exists(lt)) { lt.speed = 2; lt.friction = -0.09; lt.direction = 0 + ((i * 360) / 11) + ddir; } i += 1; } } if (lightning_timer == 94938249) { image_speed = 0; i = 0; repeat (11) { lt = instance_create(x, y, obj_mettlightning_pl); if (instance_exists(lt)) { lt.speed = 2; lt.friction = -0.09; lt.direction = 0 + (((i + 0.5) * 360) / 11) + ddir; } i += 1; } } if (lightning_timer > 100 && lightning_timer < 145) { s2 -= 0.17; sf2 += 9; } if (lightning_timer == 145) { q = 0; repeat (num) { with (kid[q]) visible = true; q += 1; } } if (lightning_timer > 145 && lightning_timer < 300) { s2 -= 0.15; sf2 -= 8; if (sf2 < 35) { sf2 = 30; lightning_timer = 40; } } if (movetype == 99) { if (lightning_timer == 110) { i = 0; repeat (7) { bb[i] = instance_create(global.idealborder[0] + (i * 25), 100, obj_npc_marker); with (bb[i]) sprite_index = spr_plusbomb; i += 1; } } if (lightning_timer > 110 && lightning_timer < 125) { i = 0; repeat (7) { with (bb[i]) { if (visible == false) visible = true; else visible = false; } i += 1; } } if (lightning_timer == 125) { lightning_timer = 35; i = 0; fs = choose(0, 1, 2, 3, 4, 5, 6); fs0 = choose(0, 1, 2, 3, 4, 5, 6); if (fs == fs0) fs += 1; if (fs > 6) fs = 0; repeat (7) { with (bb[i]) instance_destroy(); br[i] = instance_create(global.idealborder[0] + (i * 25), 100, obj_plusbomb); with (br[i]) friction = 0; v = choose(4, 4.5, 5); if (instance_exists(br[i])) { br[i].vspeed = v; if (i == fs) br[i].vspeed = 6; if (i == fs0) br[i].vspeed = 3; } i += 1; } } } if (lightning_timer == 95 && movetype == 99) { mt = instance_create(global.idealborder[0], -20, obj_dancemett); mt.vspeed = 3; mt.type = 2; mt.early = 200; mt = instance_create(global.idealborder[1] - 25, -20, obj_dancemett); mt.vspeed = 3; mt.early = 200; mt.type = 2; } if (global.turntimer < 5) { with (obj_mettb_body) { if (noarm == 0) event_user(2); } } life -= 1;