| 1 | if (draedmode == 0) | 
    
    
        | 2 | { | 
    
    
        | 3 |     if (drawngr == 1) | 
    
    
        | 4 |         sprite_delete(gr); | 
    
    
        | 5 |     gr = sprite_create_from_screen_x(obj_lborder.x - 100, obj_uborder.y, (obj_rborder.x - obj_lborder.x) + 200, (obj_dborder.y - obj_uborder.y) + 8, 0, 0, ((obj_rborder.x - obj_lborder.x) / 2) + 140, ((obj_dborder.y - obj_uborder.y) / 2) + 4); | 
    
    
        | 6 |     sprite_index = gr; | 
    
    
        | 7 | } | 
    
    
        | 8 | op = obj_purpleheart; | 
    
    
        | 9 | draw_set_color(c_black); | 
    
    
        | 10 | if (draedmode == 0) | 
    
    
        | 11 | { | 
    
    
        | 12 |     if (con < 6) | 
    
    
        | 13 |         ossafe_fill_rectangle(obj_lborder.x - 200, obj_uborder.y, obj_rborder.x + 280, obj_dborder.y + 8); | 
    
    
        | 14 |     if (con < 6) | 
    
    
        | 15 |         ossafe_fill_rectangle(0, global.idealborder[2], 640, global.idealborder[3] + 5); | 
    
    
        | 16 | } | 
    
    
        | 17 | if (pattern == 1) | 
    
    
        | 18 | { | 
    
    
        | 19 |     if (moved == 0) | 
    
    
        | 20 |     { | 
    
    
        | 21 |         xx = global.idealborder[0] - 60; | 
    
    
        | 22 |         moved = 1; | 
    
    
        | 23 |     } | 
    
    
        | 24 |     yy = obj_uborder.y; | 
    
    
        | 25 |     if (con == 0) | 
    
    
        | 26 |     { | 
    
    
        | 27 |         siner = 0; | 
    
    
        | 28 |         factor = 20; | 
    
    
        | 29 |         if (draedmode == 0) | 
    
    
        | 30 |             draw_sprite_ext(sprite_index, image_index, xx + (sprite_width / 2), yy + (sprite_height / 2), 1, 1, 0, c_white, 1); | 
    
    
        | 31 |     } | 
    
    
        | 32 |     if (xx >= -60 && con == 0) | 
    
    
        | 33 |         xx -= 10; | 
    
    
        | 34 |     if (xx <= -60 && con == 0) | 
    
    
        | 35 |         con = 1; | 
    
    
        | 36 |     if (con == 2) | 
    
    
        | 37 |     { | 
    
    
        | 38 |         global.border = 23; | 
    
    
        | 39 |         alarm[4] = 60; | 
    
    
        | 40 |         instance_create(obj_rborder.x + 10, obj_dborder.y - 122, obj_grosscupcake2); | 
    
    
        | 41 |         con = 3; | 
    
    
        | 42 |     } | 
    
    
        | 43 |     if (con == 3) | 
    
    
        | 44 |     { | 
    
    
        | 45 |         siner = 0; | 
    
    
        | 46 |         if (draedmode == 0) | 
    
    
        | 47 |             draw_sprite_ext(sprite_index, image_index, xx + (sprite_width / 2), yy + (sprite_height / 2), 1, 1, 0, c_white, 1); | 
    
    
        | 48 |     } | 
    
    
        | 49 |     if (con == 4) | 
    
    
        | 50 |     { | 
    
    
        | 51 |         global.border = 22; | 
    
    
        | 52 |         obj_purpleheart.ttype = 3; | 
    
    
        | 53 |         con = 5; | 
    
    
        | 54 |         gen = instance_create(0, 0, obj_spiderbulletgen); | 
    
    
        | 55 |         if (instance_exists(gen)) | 
    
    
        | 56 |         { | 
    
    
        | 57 |             gen.dmg = dmg; | 
    
    
        | 58 |             if (obj_spiderb.turnamt == 5) | 
    
    
        | 59 |                 gen.type = 13; | 
    
    
        | 60 |             if (obj_spiderb.turnamt == 10) | 
    
    
        | 61 |             { | 
    
    
        | 62 |                 gen.type = 14; | 
    
    
        | 63 |                 obj_purpleheart.yadd2 = 4; | 
    
    
        | 64 |             } | 
    
    
        | 65 |             if (obj_spiderb.turnamt == 16) | 
    
    
        | 66 |             { | 
    
    
        | 67 |                 gen.type = 16; | 
    
    
        | 68 |                 obj_purpleheart.yadd2 = 5; | 
    
    
        | 69 |             } | 
    
    
        | 70 |             gen.alarm[0] = 60; | 
    
    
        | 71 |         } | 
    
    
        | 72 |         siner = 0; | 
    
    
        | 73 |         rotfactor = 5; | 
    
    
        | 74 |     } | 
    
    
        | 75 |     if (con == 5) | 
    
    
        | 76 |     { | 
    
    
        | 77 |         if (obj_purpleheart.yadd < 5) | 
    
    
        | 78 |             obj_purpleheart.yadd += 0.01; | 
    
    
        | 79 |         siner += 1; | 
    
    
        | 80 |         if (draedmode == 0) | 
    
    
        | 81 |             draw_sprite_ext(sprite_index, image_index, xx + (sprite_width / 2), yy + (sprite_height / 2), 1, 1, sin(siner / 10) * rotfactor, c_white, 1); | 
    
    
        | 82 |         if (global.turntimer < 80 && rotfactor > 0) | 
    
    
        | 83 |         { | 
    
    
        | 84 |             rotfactor -= 0.1; | 
    
    
        | 85 |             if (rotfactor == 0 && obj_spiderb.turnamt == 16) | 
    
    
        | 86 |             { | 
    
    
        | 87 |                 global.turntimer = 370; | 
    
    
        | 88 |                 con = 6; | 
    
    
        | 89 |                 with (obj_spiderbulletgen) | 
    
    
        | 90 |                     instance_destroy(); | 
    
    
        | 91 |             } | 
    
    
        | 92 |         } | 
    
    
        | 93 |     } | 
    
    
        | 94 |     if (con == 6) | 
    
    
        | 95 |     { | 
    
    
        | 96 |         global.border = 21; | 
    
    
        | 97 |         obj_heart.x = obj_purpleheart.x; | 
    
    
        | 98 |         obj_heart.y = obj_purpleheart.y; | 
    
    
        | 99 |         with (obj_purpleheart) | 
    
    
        | 100 |             instance_destroy(); | 
    
    
        | 101 |         with (obj_hideouscupcake) | 
    
    
        | 102 |             vspeed = 4; | 
    
    
        | 103 |         with (obj_vertspider) | 
    
    
        | 104 |             instance_destroy(); | 
    
    
        | 105 |         con = 7; | 
    
    
        | 106 |         alarm[4] = 40; | 
    
    
        | 107 |     } | 
    
    
        | 108 |     if (con == 7 || con == 8) | 
    
    
        | 109 |     { | 
    
    
        | 110 |         if (obj_heart.y < (obj_uborder.y + 20)) | 
    
    
        | 111 |             obj_heart.y = obj_uborder.y + 20; | 
    
    
        | 112 |     } | 
    
    
        | 113 |     if (con == 8) | 
    
    
        | 114 |     { | 
    
    
        | 115 |         with (obj_hideouscupcake) | 
    
    
        | 116 |             instance_destroy(); | 
    
    
        | 117 |         obj_spiderb.con = 50; | 
    
    
        | 118 |         instance_destroy(); | 
    
    
        | 119 |     } | 
    
    
        | 120 |     if (con == 1) | 
    
    
        | 121 |     { | 
    
    
        | 122 |         xx += 1; | 
    
    
        | 123 |         if (xx >= 140 && instance_exists(obj_spiderbulletgen) == 1) | 
    
    
        | 124 |         { | 
    
    
        | 125 |             with (obj_spiderbulletgen) | 
    
    
        | 126 |                 instance_destroy(); | 
    
    
        | 127 |         } | 
    
    
        | 128 |         if (draedmode == 0) | 
    
    
        | 129 |             draw_sprite_ext(sprite_index, image_index, xx + (sprite_width / 2), yy + (sprite_height / 2) + (sin(siner / 6) * factor), 1, 1, 0, c_white, 1); | 
    
    
        | 130 |         siner += 1; | 
    
    
        | 131 |         if (xx >= 160) | 
    
    
        | 132 |         { | 
    
    
        | 133 |             xx = 160; | 
    
    
        | 134 |             factor -= 2; | 
    
    
        | 135 |             if (factor <= 1) | 
    
    
        | 136 |             { | 
    
    
        | 137 |                 factor = 0; | 
    
    
        | 138 |                 con = 2; | 
    
    
        | 139 |             } | 
    
    
        | 140 |         } | 
    
    
        | 141 |     } | 
    
    
        | 142 | } | 
    
    
        | 143 | if (pattern == 2) | 
    
    
        | 144 | { | 
    
    
        | 145 |     siner += 1; | 
    
    
        | 146 |     if (draedmode == 0) | 
    
    
        | 147 |         draw_sprite_ext(sprite_index, image_index, xx + (sprite_width / 2), yy + (sprite_height / 2), 1, 1, (sin(siner / 10) * 5) + rot, c_white, 1); | 
    
    
        | 148 | } | 
    
    
        | 149 | drawngr = 1; | 
    
    
        | 150 | if (global.mnfight != 2) | 
    
    
        | 151 |     instance_destroy(); |