sCavedropperNest1
0
-1
-150
0
<undefined>
<undefined>
1
603
7
0
0
-1
2
self
0
0
1
canbeX = 1;
alarm[0] = 1;
flashing = 0;
fxtimer = 0;
stun = 0;
myhealth = 10;
image_speed = 0;
1
603
7
0
0
-1
2
self
0
0
1
if (distance_to_object(oCharacter) < 120) instance_create(x, y + 4, oCavedropper);
alarm[0] = 120;
1
603
7
0
0
-1
2
self
0
0
1
if (fxtimer < 5) {
fxtimer += 1;
} else fxtimer = 0;
if (stun > 0) stun -= 1;
if (flashing > 0) flashing -= 1;
1
603
7
0
0
-1
2
self
0
0
1
if (other.dohit) with (other) event_user(0);
if (other.pbeam == 0) with (other) instance_destroy();
event_user(0);
1
603
7
0
0
-1
2
self
0
0
1
if (stun == 0) event_user(0);
1
603
7
0
0
-1
2
self
0
0
1
if (stun == 0) event_user(0);
1
603
7
0
0
-1
2
self
0
0
1
if (stun == 0) event_user(0);
1
603
7
0
0
-1
2
self
0
0
1
expl = instance_create(x, y, oFXAnimSpark);
expl.image_speed = 0.5;
expl.additive = 0;
expl.sprite_index = sExpl1;
expl.depth = -150;
sfx_play(sndEDeath1);
instance_destroy();
1
603
7
0
0
-1
2
self
0
0
1
dmg = other.damage;
if (global.difficulty == 2) dmg = ceil(dmg / 2);
myhealth -= dmg;
if (myhealth <= 0) {
event_user(1);
global.kills += 1;
}
stun = 4;
flashing = 5;
fxtimer = 0;
PlaySoundMono(sndEHit1);
1
603
7
0
0
-1
2
self
0
0
1
if (!flashing) draw_sprite_ext(sprite_index, image_index, x, y, image_xscale, 1, image_angle, -1, image_alpha);
if (flashing) {
draw_sprite_ext(sprite_index, image_index, x, y, image_xscale, 1, image_angle, make_color_rgb(80, 80, 80), 1);
draw_set_blend_mode(bm_add);
repeat (3) draw_sprite_ext(sprite_index, image_index, x, y, image_xscale, 1, image_angle, -1, 1 - fxtimer * 0.25);
draw_set_blend_mode(bm_normal);
}
0
0
0
0.5
0.100000001490116
0
0.100000001490116
0.100000001490116
0.200000002980232
-1
-1