sTankCore
0
-1
-1
0
<undefined>
<undefined>
1
603
7
0
0
-1
2
self
0
0
1
canbeX = 0;
//myhealth = 100;
myhealth = global.mod_tankHcore;
image_speed = 1/10;
shaking = 0;
flashing = 0;
1
603
7
0
0
-1
2
self
0
0
1
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 (!instance_exists(oTankShield)) {
if (other.smissile == 0) {
myhealth -= 10; // * (1 + other.smissile * 2);
} else if (other.smissile == 1) {
myhealth -= 20;
} else {
}
event_user(0);
with (other) event_user(0);
}
1
603
7
0
0
-1
2
self
0
0
1
if (!instance_exists(oTankShield)) {
if (other.pbeam) myhealth -= 1;
else myhealth -= 3;
event_user(0);
with (other) {
event_user(0);
if (!pbeam) instance_destroy();
}
}
1
603
7
0
0
-1
2
self
0
0
1
if (!instance_exists(oTankShield)) {
if (!flashing) {
myhealth -= 1; // 6
event_user(0);
}
}
1
603
7
0
0
-1
2
self
0
0
1
if (!instance_exists(oTankShield)) {
if (!flashing) {
myhealth -= 1;
event_user(0);
}
}
1
603
7
0
0
-1
2
self
0
0
1
with (oTank) {
state = 100;
statetime = -1;
}
instance_destroy();
repeat (5) instance_create(x, y, oDebris);
make_explosion1big(x, y);
1
603
7
0
0
-1
2
self
0
0
1
flashing = 5;
with (oTank) flashing = 5;
with (oTankHead) flashing = 5;
with (oTankBottom) flashing = 5;
with (oTankCannon) flashing = 5;
with (oTankArm) flashing = 5;
if (myhealth > 90) image_index = 0;
if (myhealth <= 90) sprite_index = sTankCore2;
if (myhealth <= 45) sprite_index = sTankCore3;
if (myhealth <= 0) event_user(1);
sfx_stop(sndTesterHit);
sfx_play(sndTesterHit);
1
603
7
0
0
-1
2
self
0
0
1
draw_sprite_ext(sprite_index, -1, x, y, 1, 1, image_angle, -1, 1);
if (flashing) {
draw_set_blend_mode(bm_add);
repeat (2) draw_sprite_ext(sprite_index, -1, x, y, 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