sWallfire2
0
-1
-3
0
oEnemy
<undefined>
1
603
7
0
0
-1
2
self
0
0
1
action_inherited();
canbeX = 0;
myhealth = 15;
if (oControl.mod_randomgamebool == 1 && (global.wbeam == 0 || global.sbeam == 0 || global.pbeam == 0)){
freezehp = floor(myhealth * .15);
if (freezehp < 1) freezehp = 1;
} //nerfed frozen enemies in random games
damage = 4;
hitsound = sndRobotHit2;
deathsound = sndRobotExpl;
platyoffset = -6;
frozenspr = sWallfireFrozen;
target = 0;
canattack = 1;
state = 1;
image_speed = 0;
if (global.difficulty == 0) alarm[0] = 90;
if (global.difficulty == 1) alarm[0] = 60;
if (global.difficulty == 2) alarm[0] = 60;
hitemp = 1;
empspr = sWallfireDisabled;
freezefall = 0;
1
603
7
0
0
-1
2
self
0
0
1
state = 1;
if (global.difficulty == 0) alarm[0] = timer * 1.5;
if (global.difficulty == 1) alarm[0] = timer;
if (global.difficulty >= 2) alarm[0] = timer * 0.5;
1
603
7
0
0
-1
2
self
0
0
1
if (active == 1 && frozen == 0) {
poffset = 8 * facing;
if(facing == 1) yoffset = 4;
else yoffset = 2;
projectile = instance_create(x + poffset, y - yoffset, oWallfireProj2);
projectile.hspeed = (3.5 + global.difficulty) * facing;
projectile.image_angle = projectile.direction;
PlaySoundMono(sndFireball);
}
if (global.difficulty == 0) alarm[2] = 30;
if (global.difficulty == 1) alarm[2] = 20;
if (global.difficulty >= 2) alarm[2] = 10;
1
603
7
0
0
-1
2
self
0
0
1
state = 2;
if (global.difficulty == 0) alarm[1] = 30;
if (global.difficulty == 1) alarm[1] = 20;
if (global.difficulty == 2) alarm[1] = 10;
1
603
7
0
0
-1
2
self
0
0
1
action_inherited();
enemy_active_check(20);
enemy_target_check(90, 1);
if (active == 1 && stun == 0 && frozen == 0) {
if (state == 1) {
if (image_index > 0) image_index -= 0.5;
}
if (state == 2 && image_index < 3) image_index += 0.5;
}
if (state == 100) {
spark = instance_create(x, y, oFXAnimSpark);
spark.sprite_index = sWallfireDestr2;
spark.image_speed = 0;
spark.depth = 1;
spark.image_xscale = facing;
repeat (20) instance_create(x, y, oDebris);
enemy_death();
}
1
603
7
0
0
-1
2
self
0
0
1
event_inherited();
emp.falling = 0;
1
603
7
0
0
-1
2
self
0
0
1
event_inherited();
if (random(2) < 0.2) instance_create(x, y, oDebris);
1
603
7
0
0
-1
2
self
0
0
1
image_xscale = facing;
0
0
0
0.5
0.100000001490116
0
0.100000001490116
0.100000001490116
0.200000002980232
-1
-1