sHornoadIdle
0
-1
-3
0
oEnemy
<undefined>
1
603
7
0
0
-1
2
self
0
0
1
action_inherited();
makeActive();
setCollisionBounds(-4, -12, 4, 0);
image_index = floor(random(5));
myhealth = 10;
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 = 6;
hitsound = sndEHit1;
deathsound = sndEDeath1;
platyoffset = -14;
frozenspr = sHornoadFrozen;
canattack = 1;
jumpheight = -2;
state = 1;
alarm[0] = 60 + random(120);
alarm[1] = 90 + random(200);
alarm[2] = 200 + random(200);
1
603
7
0
0
-1
2
self
0
0
1
alarm[2] = 200 + random(220);
if (active == 1 && state == 1 && target == 1 && y <= oCharacter.y && y >= oCharacter.y - 32) {
state = 5;
image_index = 0;
canattack = 1;
}
1
603
7
0
0
-1
2
self
0
0
1
alarm[1] = 90 + random(220);
if (active == 1 && state == 1 && target == 0) {
state = 2;
image_index = 0;
}
1
603
7
0
0
-1
2
self
0
0
1
alarm[0] = 60 + random(120);
if (active == 1 && state == 1) {
state = 4;
image_index = 0;
}
1
603
7
0
0
-1
2
self
0
0
1
action_inherited();
enemy_active_check(20);
enemy_target_check(140, 0);
if (active == 1 && frozen == 0) {
yVel += 0.2;
if (oCharacter.y <= y - 32 && target == 1) {
jumpheight = -4;
} else jumpheight = -2;
if (state == 4) {
if (image_index >= 3 && image_index <= 4) {
y -= 1;
yVel = jumpheight - timer / 50;
xVel = 1 * facing;
}
}
if (isCollisionBottom(1) == 1) {
yVel = 0;
if (state == 4 && image_index >= 5) {
state = 1;
xVel = 0;
}
}
if (isCollisionRight(4) && facing == 1 && state == 1) {
facing = -1;
state = 3;
}
if (isCollisionLeft(4) && facing == -1 && state == 1) {
facing = 1;
state = 3;
}
if (state == 5 && image_index >= 4 && image_index <= 5 && canattack == 1) {
projectile = instance_create(x, y - 4, oHornoadSpit);
projectile.vspeed = -3;
projectile.hspeed = 6 * facing;
canattack = 0;
}
if (stun == 0) moveTo(xVel, yVel);
} // if (active == 1 && frozen == 0)
if (state == 100) enemy_death();
if (frozen == 0) {
image_speed = 0.2;
} else image_speed = 0;
if (state == 1) sprite_index = sHornoadIdle;
if (state == 2) sprite_index = sHornoadShake;
if (state == 3) sprite_index = sHornoadTurn;
if (state == 4) sprite_index = sHornoadJump;
if (state == 5) sprite_index = sHornoadAttack;
1
603
7
0
0
-1
2
self
0
0
1
if (state == 4) image_index = 6;
if (state == 3 || state == 2 || state == 5) state = 1;
0
0
0
0.5
0.100000001490116
0
0.100000001490116
0.100000001490116
0.200000002980232
-1
-1