if (frozen == 0) siner += 1; if (flash == 0) { image_blend = c_white; blend2 = 16777215; } if (flash == 1) { draw_set_alpha(sin(siner / 3) / 2); draw_ellipse_color(x - 85, y + 40, x + 85, y - 40, c_blue, c_black, 0); draw_set_alpha(1); image_blend = make_color_rgb(120 - ((sin(siner / 3) / 2) * 100), 120 - ((sin(siner / 3) / 2) * 100), 255); } if (flash == 2) { draw_set_alpha(sin(siner / 3) / 2); draw_ellipse_color((x - 105) + op, y + 40, x + 85 + op, y - 40, c_fuchsia, c_black, 0); draw_set_alpha(1); blend2 = make_color_rgb(230, 100 - (sin(siner / 3) * 100), 200); } if (global.debug == 1) { if (keyboard_check_pressed(ord("C"))) { if (flash == 0) { flash = 2; } else { flash = 0; blend2 = 8421504; } } if (keyboard_check_pressed(ord("X"))) { if (flash == 0) { flash = 1; } else { flash = 0; image_blend = c_gray; } } } for (i = 0; i < 13; i += 1) { offx = x + (sin((i - 49) / 3) * 85); offy = y + (cos((i - 3) / 2.2) * 40) + (cos((i + siner) / 6) * 8); offs = sin((siner + (i * 4)) / 6) * 2; if (offs > 1) offs = (offs - 1) / 3; else offs = 0; offv = (i * -12) - 330; if (i > 5) offv = (i * -20) - 310; if (i > 7) offv = (i * -22) - 310; if (global.soul_rescue < 3) draw_sprite_ext(sprite_index, image_index, offx, offy, 1 + offs, (1 + offs) - (sin(i / 5) * 0.3), offv, image_blend, 1); else draw_sprite_ext(sprite_index, image_index, offx, offy, 1, 1, offv, c_gray, 1); } for (i = 0; i < 13; i += 1) { offx2 = (x - (sin((i - 49) / 3) * 85)) + op; offy2 = y + (cos((i - 3) / 2.2) * 40) + (cos((i + siner) / 6) * 8); offs2 = sin((siner + (i * 4)) / 6) * 2; if (offs2 > 1) offs2 = (offs2 - 1) / 3; else offs2 = 0; offv2 = (i * 12) + magicfactor; if (i > 5) offv2 = (i * 30) + magicfactor2; if (i > 7) offv2 = (i * 20) + magicfactor3; if (global.soul_rescue < 4) draw_sprite_ext(sprite_index, image_index, offx2, offy2, -1 - offs2, (1 + offs2) - (sin(i / 5) * 0.3), offv2, blend2, 1); else draw_sprite_ext(sprite_index, image_index, offx2, offy2, -1, 1, offv2, c_gray, 1); }