sTesterEye
0
-1
-1
0
<undefined>
<undefined>
1
603
7
0
0
-1
2
self
0
0
1
canbeX = 0;
//myhealth = 100;
myhealth = global.mod_testerHeye;
centerx = x;
centery = y;
targetx = x;
targety = y;
shinefx = 0;
shine_frame = 0;
alarm[0] = 30;
flashing = 0;
canbehit = 0;
shutter_frame = 0;
1
603
7
0
0
-1
2
self
0
0
1
shine_frame += 1;
if (shine_frame > 7) {
shine_frame = 0;
alarm[0] = random_range(200, 500);
} else alarm[0] = 2;
1
603
7
0
0
-1
2
self
0
0
1
targetx = oCharacter.x;
targety = oCharacter.y;
centerx = lengthdir_x(4, point_direction(x, y, targetx, targety));
centery = lengthdir_y(4, point_direction(x, y, targetx, targety));
shinefx = !shinefx;
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 (canbehit && myhealth > 0) {
if (other.smissile) {
myhealth -= 40;
} else myhealth -= 10;
event_user(0);
with (other) event_user(0);
}
1
603
7
0
0
-1
2
self
0
0
1
if (canbehit && myhealth > 0) {
myhealth -= 2;
event_user(0);
with (other) {
event_user(0);
instance_destroy();
}
}
1
603
7
0
0
-1
2
self
0
0
1
if (canbehit && myhealth > 0 && !flashing) {
myhealth -= 5;
event_user(0);
}
1
603
7
0
0
-1
2
self
0
0
1
if (canbehit && myhealth > 0 && !flashing) {
myhealth -= 1;
event_user(0);
}
1
603
7
0
0
-1
2
self
0
0
1
flashing = 5;
with (oTester) {
flashing = 6;
if (enableforcefield == 0) {
enableforcefield = 1;
glass.enabled = 1;
}
}
with (oTesterShield) flashing = 8;
with (oTesterCannon) flashing = 10;
if (myhealth <= 0) {
make_explosion3(x, y);
repeat (30) instance_create(x, y, oDebris);
with (oTester) {
state = 100;
statetime = -1;
alarm[10] = 1;
alarm[11] = 300;
}
with (oTesterShield) event_user(1);
visible = false;
}
sfx_stop(sndTesterHit);
sfx_play(sndTesterHit);
1
603
7
0
0
-1
2
self
0
0
1
draw_self();
draw_sprite(sTesterEyeCenter, -1, x + centerx, y + centery);
draw_sprite_ext(sTesterEyeShine, shine_frame, x, y, 1, 1, 0, -1, shinefx);
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);
}
if (shutter_frame < 4) draw_sprite(sTesterShutter, shutter_frame, x, y);
0
0
0
0.5
0.100000001490116
0
0.100000001490116
0.100000001490116
0.200000002980232
-1
-1