sTesterShield 0 -1 -5 0 <undefined> <undefined> 1 603 7 0 0 -1 2 self 0 0 1 canbeX = 0; //myhealth = 200; myhealth = global.mod_testerHshield; image_speed = 0; shaking = 0; flashing = 0; offx = 0; offy = 0; //damage = 40; damage = global.mod_testerDshield; center_x = 0; center_y = 0; numpickups = 0; 1 603 7 0 0 -1 2 self 0 0 1 if (shaking > 0) { shaking -= 1; offx = random_range(-2, 2); offy = random_range(-2, 2); } else { offx = 0; offy = 0; } if (flashing > 0) flashing -= 1; center_x = x + lengthdir_x(40, image_angle + 45); center_y = y + lengthdir_y(40, image_angle + 45); 1 603 7 0 0 -1 2 self 0 0 1 with (other) event_user(0); 1 603 7 0 0 -1 2 self 0 0 1 with (other) event_user(0); myhealth -= 14 * (1 + other.smissile * 2); event_user(0); 1 603 7 0 0 -1 2 self 0 0 1 with (other) { event_user(1); if (!pbeam) instance_destroy(); } 1 603 7 0 0 -1 2 self 0 0 1 if (!flashing) { myhealth -= 2; event_user(0); } 1 603 7 0 0 -1 2 self 0 0 1 if (!flashing) { myhealth -= 1; event_user(0); } 1 603 7 0 0 -1 2 self 0 0 1 damage_player(damage, 7, -3, 0, 0); 1 603 7 0 0 -1 2 self 0 0 1 repeat (10) instance_create(center_x, center_y, oDebris); repeat (10) instance_create(center_x, center_y, oMetalDebrisBig); make_explosion1big(center_x, center_y); instance_destroy(); 1 603 7 0 0 -1 2 self 0 0 1 if (global.missiles > 30) { numpickups = 10; } else numpickups = 20; shaking = 10; flashing = 5; repeat (2) instance_create(center_x, center_y, oDebris); if (myhealth <= 0) { event_user(1); repeat (numpickups) instance_create(center_x + random_range(-15, 15), center_y + random_range(-15, 15), oMPickup); sfx_play(sndRobotExpl); } if (myhealth > 150) image_index = 0; if (myhealth <= 150) image_index = 1; if (myhealth <= 100) image_index = 2; if (myhealth <= 50) image_index = 3; sfx_stop(sndRobotHit2); sfx_play(sndRobotHit2); 1 603 7 0 0 -1 2 self 0 0 1 draw_sprite_ext(sprite_index, -1, x + offx, y + offy, 1, 1, image_angle, -1, 1); if (flashing) { draw_set_blend_mode(bm_add); repeat (2) draw_sprite_ext(sprite_index, -1, x + offx, y + offy, 1, 1, image_angle, -1, flashing / 5); draw_set_blend_mode(bm_normal); } 0 0 0 0.5 0.100000001490116 0 0.100000001490116 0.100000001490116 0.200000002980232 -1 -1