sAutom 0 -1 -3 0 oEnemy <undefined> 1 603 7 0 0 -1 2 self 0 0 1 action_inherited(); canbeX = 0; myhealth = 200; damage = 24; hitbeam = 0; hitmissile = 0; hitmissileexpl = 0; hitpbomb = 1; hitbomb = 0; hitscrewattack = 1; hitpseudoscrew = 0; canfreeze = 0; hitsound = sndRobotHit4; deathsound = sndRobotExpl; platyoffset = -6; frozenspr = sAutom; flipx = 0; target = 0; canattack = 1; state = 1; calpha = 0; alarm[0] = 1; alarm[1] = 120; hitemp = 1; empspr = sAutomDisabled; 1 603 7 0 0 -1 2 self 0 0 1 if (state == 1) { state = 2; alarm[1] = 180; exit; } if (state == 2) { state = 3; alarm[1] = 30; exit; } if (state == 3) { state = 1; alarm[1] = 120; exit; } 1 603 7 0 0 -1 2 self 0 0 1 if (state == 2) instance_create(x + 9, y + 20, oAutomLava); alarm[0] = 3; 1 603 7 0 0 -1 2 self 0 0 1 action_inherited(); enemy_active_check(20); if (active == 1 && stun == 0 && frozen == 0) { if (state == 1) { if (collision_line(x - 16, y - 8, x - 16, y, oSolid, true, true) > 0 && facing == -1) facing = 1; if (collision_line(x + 16, y - 8, x + 16, y, oSolid, true, true) > 0 && facing == 1) facing = -1; hspeed = facing; calpha = 0; } if (state == 2) { hspeed = 0; if (calpha < 1) calpha += 0.05; } if (state == 3) { hspeed = 0; if (calpha > 0) calpha -= 0.05; } image_speed = 0.5; } else hspeed = 0; if (state == 100) { enemy_death2(); repeat (20) instance_create(x, y, oDebris); } 1 603 7 0 0 -1 2 self 0 0 1 action_inherited(); event_user(1); if (random(2) < 0.2) instance_create(x, y, oDebris); 1 603 7 0 0 -1 2 self 0 0 1 if (flipx) { image_xscale = facing; } else image_xscale = 1; if (frozen) { myspr = frozenspr; } else myspr = sprite_index; if (!flashing) { draw_sprite_ext(myspr, -1, x, y, image_xscale, 1, image_angle, -1, image_alpha); draw_sprite_ext(sAutomCannon, -1, x + 5, y + 9, image_xscale, 1, image_angle, -1, calpha); } if (flashing) { draw_sprite_ext(myspr, -1, 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(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