sPincherFly
0
-1
-3
0
oEnemy
<undefined>
1
603
7
0
0
-1
2
self
0
0
1
action_inherited();
makeActive();
setCollisionBounds(-4, -4, 4, 0);
myhealth = 14;
damage = 20;
hitsound = sndEHit1;
deathsound = sndEDeath2;
platyoffset = -4;
frozenspr = sPincherFlyFrozen;
target = 0;
canattack = 1;
flipx = 0;
state = 1;
alarm[0] = 60 + random(180);
timer = 120;
facing = 1;
1
603
7
0
0
-1
2
self
0
0
1
alarm[0] = 60 + random(180);
facing = -facing;
1
603
7
0
0
-1
2
self
0
0
1
if(instance_exists(oLavaSurface) && sprite_index != sPincherFlyA4) {
sprite_index = sPincherFlyA4;
}
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 && frozen == 0) {
if (state == 1) {
xVel = 0.5 * facing;
if (isCollisionRight(2) && facing == 1) facing = -1;
if (isCollisionLeft(2) && facing == -1) facing = 1;
if (target == 1) {
if (oCharacter.y - 8 > y) yVel = 0.3;
if (oCharacter.y - 8 < y) yVel = -0.3;
} else yVel = 0;
}
if (stun == 0) moveTo(xVel, yVel);
image_speed = 0.35;
}
if (state == 100) enemy_death();
0
0
0
0.5
0.100000001490116
0
0.100000001490116
0.100000001490116
0.200000002980232
-1
-1