sMZeta_Cocoon_Base 0 -1 -10 0 <undefined> <undefined> 1 603 7 0 0 -1 2 self 0 0 1 alarm[0] = 1; shaking = 0; state = 0; statetime = 0; facing = -1; piece0x = -21; piece0y = -4; piece0a = 0; xoff0 = 0; yoff0 = 0; piece1x = -14; piece1y = -7; piece1a = 0; xoff1 = 0; yoff1 = 0; piece2x = -10; piece2y = -6; piece2a = 0; xoff2 = 0; yoff2 = 0; piece3x = -1; piece3y = -6; piece3a = 0; xoff3 = 0; yoff3 = 0; piece4x = 20; piece4y = -11; piece4a = 0; xoff4 = 0; yoff4 = 0; idle = 0; 1 603 7 0 0 -1 2 self 0 0 1 if (global.metdead[myid] > 0) { //instance_destroy(); //idle = 1; state = 3; exit; } if (global.event[205] > 0) event_user(1); 1 603 7 0 0 -1 2 self 0 0 1 if (state == 0) { } if (state == 1) { if (statetime == 0) mus_current_fadeout(); if (statetime == 90) { shaking = 20; sfx_play(sndMZetaCocoon1); } if (statetime == 180) { shaking = 25; sfx_play(sndMZetaCocoon2); } if (statetime == 300) { state = 2; statetime = 0; event_user(0); sfx_play(sndMZetaCocoon3); bld = instance_create(x, y - 24, oFXAnimSpark); bld.sprite_index = sMGammaBlood1; bld.image_speed = 0.5; bld.image_alpha = 0.6; bld = instance_create(x - 10, y - 18, oFXAnimSpark); bld.sprite_index = sMGammaBlood1; bld.image_speed = 0.4; bld.image_alpha = 0.6; bld.image_angle = 60; bld = instance_create(x + 12, y - 20, oFXAnimSpark); bld.sprite_index = sMGammaBlood1; bld.image_speed = 0.45; bld.image_alpha = 0.6; bld.image_angle = -60; } } // if (state == 1) if (state == 2) { piece0x = lerp(piece0x, -30, 0.2); piece0y = lerp(piece0y, -6, 0.2); piece0a = lerp(piece0a, 81, 0.05); piece1x = lerp(piece1x, -14, 0.2); piece1y = lerp(piece1y, 0, 0.2); piece1a = lerp(piece1a, 36, 0.1); piece2x = lerp(piece2x, -3, 0.2); piece2y = lerp(piece2y, 4, 0.2); piece2a = lerp(piece2a, 64, 0.15); piece3x = lerp(piece3x, 5, 0.2); piece3y = lerp(piece3y, -4, 0.2); piece3a = lerp(piece3a, -40, 0.1); piece4x = lerp(piece4x, 24, 0.2); piece4y = lerp(piece4y, -10, 0.2); piece4a = lerp(piece4a, -69, 0.05); } if (state == 3) { piece0x = -30; piece0y = -6; piece0a = 81; piece1x = -14; piece1y = 0; piece1a = 36; piece2x = -3; piece2y = 4; piece2a = 64; piece3x = 5; piece3y = -4; piece3a = -40; piece4x = 24; piece4y = -10; piece4a = -69; } if (shaking > 0) { xoff0 = choose(-1, 0, 1); yoff0 = choose(-1, 0, 1); xoff1 = choose(-1, 0, 1); yoff1 = choose(-1, 0, 1); xoff2 = choose(-1, 0, 1); yoff2 = choose(-1, 0, 1); xoff3 = choose(-1, 0, 1); yoff3 = choose(-1, 0, 1); xoff4 = choose(-1, 0, 1); yoff4 = choose(-1, 0, 1); } else { xoff0 = 0; yoff0 = 0; xoff1 = 0; yoff1 = 0; xoff2 = 0; yoff2 = 0; xoff3 = 0; yoff3 = 0; xoff4 = 0; yoff4 = 0; } if (statetime < 900) { statetime += 1; } if (shaking > 0) shaking -= 1; 1 603 7 0 0 -1 2 self 0 0 1 mtr = instance_create(x, y - 42, oMZeta); mtr.facing = facing; mtr.state = 0; mtr.myid = myid; mtr.limit_left = limit_left; mtr.limit_right = limit_right; state = 3; //idle = 1; //instance_destroy(); 1 603 7 0 0 -1 2 self 0 0 1 mtr = instance_create(x - 16 * facing, y - 24, oMZeta); mtr.facing = facing; mtr.state = 50; mtr.myid = myid; mtr.limit_left = limit_left; mtr.limit_right = limit_right; mtr.visible = false; mtr.alarm[2] = 1; 1 603 7 0 0 -1 2 self 0 0 1 draw_sprite_ext(sMZeta_Cocoon0, -1, x + (piece0x + xoff0) * facing, y + piece0y + yoff0, facing, 1, piece0a * facing, -1, 1); draw_sprite_ext(sMZeta_Cocoon1, -1, x + (piece1x + xoff1) * facing, y + piece1y + yoff1, facing, 1, piece1a * facing, -1, 1); draw_sprite_ext(sMZeta_Cocoon2, -1, x + (piece2x + xoff2) * facing, y + piece2y + yoff2, facing, 1, piece2a * facing, -1, 1); draw_sprite_ext(sMZeta_Cocoon3, -1, x + (piece3x + xoff3) * facing, y + piece3y + yoff3, facing, 1, piece3a * facing, -1, 1); draw_sprite_ext(sMZeta_Cocoon4, -1, x + (piece4x + xoff4) * facing, y + piece4y + yoff4, facing, 1, piece4a * facing, -1, 1); draw_sprite_ext(sMZeta_Cocoon_Base, -1, x, y, facing, 1, 0, -1, 1); 0 0 0 0.5 0.100000001490116 0 0.100000001490116 0.100000001490116 0.200000002980232 -1 -1