sTankTrackB 0 -1 -1 0 <undefined> sTankBottom 1 603 7 0 0 -1 2 self 0 0 1 canbeX = 0; //myhealth = 100; myhealth = global.mod_tankHbottom; image_speed = 0.2; shaking = 0; flashing = 0; offx = 0; offy = 0; damaged = 0; bg_frame = 0; tr1x = -3; tr1y = -20; tr2x = 59; tr2y = -20; 1 603 7 0 0 -1 2 self 0 0 1 if (shaking > 0) { shaking -= 1; offx = random_range(-1, 1); } else { offx = 0; offy = 0; } if (flashing > 0) flashing -= 1; 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 if (damaged == 0) { myhealth -= 10 * (1 + other.smissile * 2); event_user(0); with (other) event_user(0); } 1 603 7 0 0 -1 2 self 0 0 1 if (damaged == 0 && flashing < 3) { myhealth -= 1; event_user(0); with (other) { event_user(0); if (!pbeam) instance_destroy(); } } 1 603 7 0 0 -1 2 self 0 0 1 if (damaged == 0 && !flashing) { myhealth -= 1; event_user(0); } 1 603 7 0 0 -1 2 self 0 0 1 if (damaged == 0 && !flashing) { myhealth -= 1; event_user(0); } 1 603 7 0 0 -1 2 self 0 0 1 if (damaged == 0) { damaged = 1; bg_frame = 1; repeat (10) instance_create(x + tr1x + 30, y + tr1y + 12, oDebris); repeat (10) instance_create(x + tr1x + 30, y + tr1y + 12, oMetalDebrisBig); make_explosion1big(x + tr1x + 30, y + tr1y + 12); repeat (10) instance_create(x + tr2x + 30, y + tr2y + 12, oDebris); repeat (10) instance_create(x + tr2x + 30, y + tr2y + 12, oMetalDebrisBig); make_explosion1big(x + tr2x + 30, y + tr2y + 12); sfx_play(sndRobotExpl); } 1 603 7 0 0 -1 2 self 0 0 1 if (damaged == 0) { shaking = 8; flashing = 5; if (myhealth <= 0) event_user(1); sfx_stop(sndRobotHit2); sfx_play(sndRobotHit2); } 1 603 7 0 0 -1 2 self 0 0 1 draw_sprite_ext(sTankBottom, bg_frame, x + offx, y + offy, 1, 1, image_angle, -1, 1); if (bg_frame == 0) { draw_sprite_ext(sTankTrackB, -1, x + offx + tr1x, y + offy + tr1y, 1, 1, image_angle, -1, 1); draw_sprite_ext(sTankTrackF, -1, x + offx + tr2x, y + offy + tr2y, 1, 1, image_angle, -1, 1); } if (flashing) { draw_set_blend_mode(bm_add); repeat (2) { draw_sprite_ext(sTankBottom, bg_frame, x + offx, y + offy, 1, 1, image_angle, -1, flashing / 5); if (bg_frame == 0) { draw_sprite_ext(sTankTrackB, -1, x + offx + tr1x, y + offy + tr1y, 1, 1, image_angle, -1, flashing / 5); draw_sprite_ext(sTankTrackF, -1, x + offx + tr2x, y + offy + tr2y, 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