sTankShield
0
-1
-2
0
<undefined>
<undefined>
1
603
7
0
0
-1
2
self
0
0
1
canbeX = 0;
//myhealth = 100;
myhealth = global.mod_tankHshield;
image_speed = 0;
shaking = 0;
flashing = 0;
offx = 0;
offy = 0;
damaged = 0;
1
603
7
0
0
-1
2
self
0
0
1
if (shaking > 0) {
shaking -= 1;
offx = random_range(-1, 1);
offy = 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
repeat (10) instance_create(x + 32, y + 25, oDebris);
make_explosion1big(x + 32, y + 25);
sfx_play(sndRobotExpl);
instance_destroy();
1
603
7
0
0
-1
2
self
0
0
1
if (damaged == 0) {
shaking = 8;
flashing = 5;
if (myhealth > 50) image_index = 0;
if (myhealth <= 50) image_index = 1;
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(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