sAutoad
0
-1
-3
0
oEnemy
<undefined>
1
603
7
0
0
-1
2
self
0
0
1
action_inherited();
canbeX = 0;
makeActive();
setCollisionBounds(-10, -14, 14, 14);
myhealth = 80;
freezehp = 40;
damage = 16;
stuntime = 4;
hpush = 6;
vpush = -3;
hitmissileexpl = 0;
hitsound = sndRobotHit1;
deathsound = sndRobotExpl;
canfreeze = 1;
platyoffset = -6;
frozenspr = sAutoadFrozen;
flipx = 0;
target = 0;
state = 1;
alarm[0] = 1;
clawangle = 0;
clawx = -9;
clawy = -1;
fangy = 8;
hitemp = 1;
empspr = sAutoadDisabled;
1
603
7
0
0
-1
2
self
0
0
1
if (state == 2 && isCollisionBottom(1)) {
if (oCharacter.y - 20 > y) yVel = -3;
if (oCharacter.y - 20 < y) yVel = -5;
if (oCharacter.x > x) xVel = 2;
if (oCharacter.x < x) xVel = -2;
clawangle = 36;
sfx_play(sndAutoadJump);
}
alarm[0] = 60;
1
603
7
0
0
-1
2
self
0
0
1
action_inherited();
enemy_active_check(70);
if (active == 1 && stun == 0 && frozen == 0 && state != 100) {
if (state == 1) state = 2;
if (state == 2) {
yVel += 0.25;
if (clawangle > 0) clawangle -= 2;
if (isCollisionBottom(1) && yVel > 0) {
xVel = 0;
yVel = 0;
clawangle = -30;
}
}
if (stun == 0) moveTo(xVel, yVel);
}
if (state == 100) {
enemy_death2();
repeat (20) instance_create(x, y, oDebris);
}
1
603
7
0
0
-1
2
self
0
0
1
event_inherited();
if (yVel != 0) {
if (other.direction == 0 || other.direction == 45 || other.direction == 315) xVel += 1.8;
if (other.direction == 180 || other.direction == 135 || other.direction == 225) xVel -= 1.8;
}
1
603
7
0
0
-1
2
self
0
0
1
event_inherited();
emp.collisionBoundsOffsetBottomY = 4;
deb = instance_create(x - 12, y, oDebris);
deb.sprite_index = sAutoadClawDisabled;
deb.depth = -4;
deb = instance_create(x + 12, y, oDebris);
deb.sprite_index = sAutoadClawDisabled;
deb.depth = -4;
deb.image_xscale = -1;
1
603
7
0
0
-1
2
self
0
0
1
event_inherited();
frz.sprite_index = sAutoadFangFrozen;
frz.spr0yoff = fangy;
frz.spr1 = sAutoadFrozen;
frz.spr2 = sAutoadClawFrozen;
frz.spr2xoff = -clawx;
frz.spr2yoff = clawy;
frz.spr2xs = -1;
frz.spr2a = 360 - clawangle;
frz.spr3 = sAutoadClawFrozen;
frz.spr3xoff = clawx;
frz.spr3yoff = clawy;
frz.spr3a = clawangle;
1
603
7
0
0
-1
2
self
0
0
1
action_inherited();
if (random(2) < 0.2) instance_create(x, y, oDebris);
1
603
7
0
0
-1
2
self
0
0
1
if (frozen) {
myspr = frozenspr;
} else myspr = sprite_index;
if (!flashing) {
draw_sprite_ext(sAutoadFang, -1, x, y + fangy, image_xscale, 1, image_angle, -1, image_alpha);
draw_sprite_ext(sAutoadClaw, -1, x - clawx, y + clawy, -1, 1, 360 - clawangle, -1, image_alpha);
draw_sprite_ext(sAutoadClaw, -1, x + clawx, y + clawy, 1, 1, clawangle, -1, image_alpha);
draw_sprite_ext(myspr, -1, x, y, image_xscale, 1, image_angle, -1, image_alpha);
} else if (flashing) {
draw_sprite_ext(sAutoadFang, -1, x, y + fangy, image_xscale, 1, image_angle, make_color_rgb(80, 80, 80), image_alpha);
draw_set_blend_mode(bm_add);
repeat (3) draw_sprite_ext(sAutoadFang, -1, x, y + fangy, image_xscale, 1, image_angle, -1, 1 - fxtimer * 0.25);
draw_set_blend_mode(bm_normal);
draw_sprite_ext(sAutoadClaw, -1, x - clawx, y + clawy, -1, 1, 360 - clawangle, make_color_rgb(80, 80, 80), image_alpha);
draw_set_blend_mode(bm_add);
draw_sprite_ext(sAutoadClaw, -1, x - clawx, y + clawy, -1, 1, 360 - clawangle, -1, 1 - fxtimer * 0.25);
draw_set_blend_mode(bm_normal);
draw_sprite_ext(sAutoadClaw, -1, x + clawx, y + clawy, 1, 1, clawangle, make_color_rgb(80, 80, 80), image_alpha);
draw_set_blend_mode(bm_add);
draw_sprite_ext(sAutoadClaw, -1, x + clawx, y + clawy, 1, 1, clawangle, -1, 1 - fxtimer * 0.25);
draw_set_blend_mode(bm_normal);
draw_sprite_ext(myspr, -1, x, y, image_xscale, 1, image_angle, make_color_rgb(80, 80, 80), image_alpha);
draw_set_blend_mode(bm_add);
draw_sprite_ext(myspr, -1, 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