sTankHead
0
-1
0
0
<undefined>
<undefined>
1
603
7
0
0
-1
2
self
0
0
1
canbeX = 0;
//myhealth = 100;
myhealth = global.mod_tankHhead;
image_speed = 0.16;
shaking = 0;
flashing = 0;
offx = 0;
offy = 0;
damaged = 0;
damage = 40;
canhit = 1;
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);
} else {
with (other) event_user(1);
}
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();
}
} else {
with (other) {
event_user(1);
if (!pbeam) instance_destroy();
}
}
1
603
7
0
0
-1
2
self
0
0
1
if (damaged == 0 && !flashing) {
myhealth -= 10;
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 (canhit) damage_player(damage, 7, -3, 0, 0);
1
603
7
0
0
-1
2
self
0
0
1
if (damaged == 0) {
damaged = 1;
sprite_index = sTankHeadDest;
repeat (10) instance_create(x + 10, y, oDebris);
make_explosion1big(x + 10, y);
sfx_play(sndRobotExpl);
}
1
603
7
0
0
-1
2
self
0
0
1
if (damaged == 0) {
shaking = 8;
flashing = 5;
if (myhealth > 60) sprite_index = sTankHead;
if (myhealth <= 60) sprite_index = sTankHead2;
if (myhealth <= 30) sprite_index = sTankHead3;
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