|
|
|
|
@ -361,49 +361,82 @@ if (random(2) < 0.2) instance_create(x, y, oDebris);
|
|
|
|
|
<arguments>
|
|
|
|
|
<argument>
|
|
|
|
|
<kind>1</kind>
|
|
|
|
|
<string>action_inherited();
|
|
|
|
|
<string>armor1 = sShirkArmor1;
|
|
|
|
|
armor2 = sShirkArmor2;
|
|
|
|
|
turn = sShirkTurn;
|
|
|
|
|
armor1turn = sShirkTurnArmor1;
|
|
|
|
|
armor2turn = sShirkTurnArmor2;
|
|
|
|
|
if (frozen) {
|
|
|
|
|
myspr = frozenspr;
|
|
|
|
|
armor1 = sShirkArmor1Frozen;
|
|
|
|
|
armor2 = sShirkArmor2Frozen;
|
|
|
|
|
turn = sShirkTurnFrozen;
|
|
|
|
|
armor1turn = sShirkTurnArmor1Frozen;
|
|
|
|
|
armor2turn = sShirkTurnArmor2Frozen;
|
|
|
|
|
} else {
|
|
|
|
|
myspr = sprite_index;
|
|
|
|
|
armor1 = sShirkArmor1;
|
|
|
|
|
armor2 = sShirkArmor2;
|
|
|
|
|
turn = sShirkTurn;
|
|
|
|
|
armor1turn = sShirkTurnArmor1;
|
|
|
|
|
armor2turn = sShirkTurnArmor2;
|
|
|
|
|
}
|
|
|
|
|
image_xscale = facing;
|
|
|
|
|
if (frozen == 0){
|
|
|
|
|
image_speed = 0.5;
|
|
|
|
|
if (!flashing) {
|
|
|
|
|
if (turning == 0) {
|
|
|
|
|
draw_sprite_ext(sprite_index, -1, x, y, image_xscale, 1, image_angle, -1, image_alpha);
|
|
|
|
|
if (myhealth > shell1hp) draw_sprite_ext(sShirkArmor1, -1, x, y, image_xscale, 1, image_angle, -1, image_alpha);
|
|
|
|
|
if (myhealth > shell2hp) draw_sprite_ext(sShirkArmor2, -1, x, y, image_xscale, 1, image_angle, -1, image_alpha);
|
|
|
|
|
}
|
|
|
|
|
if (turning > 0) {
|
|
|
|
|
draw_sprite_ext(sShirkTurn, -1, x, y, image_xscale, 1, image_angle, -1, image_alpha);
|
|
|
|
|
if (myhealth > shell1hp) draw_sprite_ext(sShirkTurnArmor1, -1, x, y, image_xscale, 1, image_angle, -1, image_alpha);
|
|
|
|
|
if (myhealth > shell2hp) draw_sprite_ext(sShirkTurnArmor2, -1, x, y, image_xscale, 1, image_angle, -1, image_alpha);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (flashing) {
|
|
|
|
|
if (turning == 0) {
|
|
|
|
|
draw_sprite_ext(sprite_index, -1, x, y, image_xscale, 1, image_angle, make_color_rgb(80, 80, 80), 1);
|
|
|
|
|
if (myhealth > shell1hp) draw_sprite_ext(sShirkArmor1, -1, x, y, image_xscale, 1, image_angle, make_color_rgb(80, 80, 80), 1);
|
|
|
|
|
if (myhealth > shell2hp) draw_sprite_ext(sShirkArmor2, -1, x, y, image_xscale, 1, image_angle, make_color_rgb(80, 80, 80), 1);
|
|
|
|
|
} else image_speed = 0;
|
|
|
|
|
if (!flashing) {
|
|
|
|
|
if (turning == 0) {
|
|
|
|
|
draw_sprite_ext(myspr, -1, x, y, image_xscale, 1, image_angle, -1, image_alpha);
|
|
|
|
|
if (myhealth > shell1hp) draw_sprite_ext(armor1, -1, x, y, image_xscale, 1, image_angle, -1, image_alpha);
|
|
|
|
|
if (myhealth > shell2hp) draw_sprite_ext(armor2, -1, x, y, image_xscale, 1, image_angle, -1, image_alpha);
|
|
|
|
|
if (frozen > 0 && frozen < freezetime * 0.2){
|
|
|
|
|
draw_set_blend_mode(bm_add);
|
|
|
|
|
repeat (3) {
|
|
|
|
|
draw_sprite_ext(sprite_index, -1, x, y, image_xscale, 1, image_angle, -1, 1 - fxtimer * 0.25);
|
|
|
|
|
if (myhealth > shell1hp) draw_sprite_ext(sShirkArmor1, -1, x, y, image_xscale, 1, image_angle, -1, 1 - fxtimer * 0.25);
|
|
|
|
|
if (myhealth > shell2hp) draw_sprite_ext(sShirkArmor2, -1, x, y, image_xscale, 1, image_angle, -1, 1 - fxtimer * 0.25);
|
|
|
|
|
}
|
|
|
|
|
draw_sprite_ext(myspr, -1, x, y, image_xscale, 1, image_angle, -1, 1 - fxtimer * 0.35);
|
|
|
|
|
if (myhealth > shell1hp) draw_sprite_ext(armor1, -1, x, y, image_xscale, 1, image_angle, -1, 1 - fxtimer * 0.35);
|
|
|
|
|
if (myhealth > shell2hp) draw_sprite_ext(armor2, -1, x, y, image_xscale, 1, image_angle, -1, 1 - fxtimer * 0.35);
|
|
|
|
|
draw_set_blend_mode(bm_normal);
|
|
|
|
|
}
|
|
|
|
|
if (turning > 0) {
|
|
|
|
|
draw_sprite_ext(sShirkTurn, -1, x, y, image_xscale, 1, image_angle, make_color_rgb(80, 80, 80), 1);
|
|
|
|
|
if (myhealth > shell1hp) draw_sprite_ext(sShirkTurnArmor1, -1, x, y, image_xscale, 1, image_angle, make_color_rgb(80, 80, 80), 1);
|
|
|
|
|
if (myhealth > shell2hp) draw_sprite_ext(sShirkTurnArmor2, -1, x, y, image_xscale, 1, image_angle, make_color_rgb(80, 80, 80), 1);
|
|
|
|
|
}
|
|
|
|
|
if (turning > 0) {
|
|
|
|
|
draw_sprite_ext(turn, -1, x, y, image_xscale, 1, image_angle, -1, image_alpha);
|
|
|
|
|
if (myhealth > shell1hp) draw_sprite_ext(armor1turn, -1, x, y, image_xscale, 1, image_angle, -1, image_alpha);
|
|
|
|
|
if (myhealth > shell2hp) draw_sprite_ext(armor2turn, -1, x, y, image_xscale, 1, image_angle, -1, image_alpha);
|
|
|
|
|
if (frozen > 0 && frozen < freezetime * 0.2){
|
|
|
|
|
draw_set_blend_mode(bm_add);
|
|
|
|
|
repeat (3) {
|
|
|
|
|
draw_sprite_ext(sprite_index, -1, x, y, image_xscale, 1, image_angle, -1, 1 - fxtimer * 0.25);
|
|
|
|
|
if (myhealth > shell1hp) draw_sprite_ext(sShirkTurnArmor1, -1, x, y, image_xscale, 1, image_angle, -1, 1 - fxtimer * 0.25);
|
|
|
|
|
if (myhealth > shell2hp) draw_sprite_ext(sShirkTurnArmor2, -1, x, y, image_xscale, 1, image_angle, -1, 1 - fxtimer * 0.25);
|
|
|
|
|
}
|
|
|
|
|
draw_sprite_ext(turn, -1, x, y, image_xscale, 1, image_angle, -1, 1 - fxtimer * 0.35);
|
|
|
|
|
if (myhealth > shell1hp) draw_sprite_ext(armor1turn, -1, x, y, image_xscale, 1, image_angle, -1, 1 - fxtimer * 0.35);
|
|
|
|
|
if (myhealth > shell2hp) draw_sprite_ext(armor2turn, -1, x, y, image_xscale, 1, image_angle, -1, 1 - fxtimer * 0.35);
|
|
|
|
|
draw_set_blend_mode(bm_normal);
|
|
|
|
|
}
|
|
|
|
|
} // if (flashing)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (flashing) {
|
|
|
|
|
if (turning == 0) {
|
|
|
|
|
draw_sprite_ext(myspr, -1, x, y, image_xscale, 1, image_angle, make_color_rgb(80, 80, 80), 1);
|
|
|
|
|
if (myhealth > shell1hp) draw_sprite_ext(armor1, -1, x, y, image_xscale, 1, image_angle, make_color_rgb(80, 80, 80), 1);
|
|
|
|
|
if (myhealth > shell2hp) draw_sprite_ext(armor2, -1, x, y, image_xscale, 1, image_angle, make_color_rgb(80, 80, 80), 1);
|
|
|
|
|
draw_set_blend_mode(bm_add);
|
|
|
|
|
repeat (2) {
|
|
|
|
|
draw_sprite_ext(myspr, -1, x, y, image_xscale, 1, image_angle, -1, 1 - fxtimer * 0.25);
|
|
|
|
|
if (myhealth > shell1hp) draw_sprite_ext(armor1, -1, x, y, image_xscale, 1, image_angle, -1, 1 - fxtimer * 0.25);
|
|
|
|
|
if (myhealth > shell2hp) draw_sprite_ext(armor2, -1, x, y, image_xscale, 1, image_angle, -1, 1 - fxtimer * 0.25);
|
|
|
|
|
}
|
|
|
|
|
draw_set_blend_mode(bm_normal);
|
|
|
|
|
}
|
|
|
|
|
if (turning > 0) {
|
|
|
|
|
draw_sprite_ext(turn, -1, x, y, image_xscale, 1, image_angle, make_color_rgb(80, 80, 80), 1);
|
|
|
|
|
if (myhealth > shell1hp) draw_sprite_ext(armor1turn, -1, x, y, image_xscale, 1, image_angle, make_color_rgb(80, 80, 80), 1);
|
|
|
|
|
if (myhealth > shell2hp) draw_sprite_ext(armor2turn, -1, x, y, image_xscale, 1, image_angle, make_color_rgb(80, 80, 80), 1);
|
|
|
|
|
draw_set_blend_mode(bm_add);
|
|
|
|
|
repeat (2) {
|
|
|
|
|
draw_sprite_ext(myspr, -1, x, y, image_xscale, 1, image_angle, -1, 1 - fxtimer * 0.25);
|
|
|
|
|
if (myhealth > shell1hp) draw_sprite_ext(armor1turn, -1, x, y, image_xscale, 1, image_angle, -1, 1 - fxtimer * 0.25);
|
|
|
|
|
if (myhealth > shell2hp) draw_sprite_ext(armor2turn, -1, x, y, image_xscale, 1, image_angle, -1, 1 - fxtimer * 0.25);
|
|
|
|
|
}
|
|
|
|
|
draw_set_blend_mode(bm_normal);
|
|
|
|
|
}
|
|
|
|
|
} // if (flashing)
|
|
|
|
|
/*
|
|
|
|
|
if (!flashing) {
|
|
|
|
|
if (turning == 0) {
|
|
|
|
|
|