sBlobThrower 0 -1 -4 0 oEnemy <undefined> 1 603 7 0 0 -1 2 self 0 0 1 action_inherited(); myhealth = 100; freezehp = 220; damage = 40; hitsound = sndEHit1; deathsound = sndEDeath2; frozenspr = sBlobThrowerFrozen; canfreeze = 1; hitmissileexpl = 0; target = 0; canattack = 1; state = 0; image_speed = 0; freezefall = 0; canhit = 1; statetime = 100; blobsolid = instance_create(x-4,y-36,oBlobSolid); blobsolid.image_yscale = 2.75; blobsolid.image_xscale = 0.5; vulnerable = 0; 1 603 7 0 0 -1 2 self 0 0 1 with (blobsolid) instance_destroy(); var inst = instance_place(x, y, oBeam); if(inst != noone) { if(inst.ibeam) exit; } repeat (2) { make_explosion1(x + irandom_range(-16, 16), y - 8); make_explosion1(x + irandom_range(-16, 16), y - 24); make_explosion1(x + irandom_range(-16, 16), y - 40); } 1 603 7 0 0 -1 2 self 0 0 1 ///Behavior action_inherited(); enemy_active_check(40); enemy_target_check(90, 1); if (active == 1 && frozen == 0) { if (state == 0) { sprite_index = sBlobThrower; image_index = 0; image_speed = 0; if (target && statetime > 100) { state = 1; statetime = 0; } } if (state == 1) { if(instance_number(oBlobAir) < 9) { if (image_index < 8) { image_index += 0.2; } if (image_index > 2) { vulnerable = 1; } if (image_index >= 8) { state = 2; statetime = 0; sprite_index = sBlobThrowerIdle; frozenspr = sBlobThrowerIdleFrozen; } } } if (state == 2) { image_index += 0.1; if (statetime/40 == floor(statetime/40)) { if(instance_number(oBlobAir) < 9) { var inst = instance_create(x,y-45,oBlobAir); inst.parent = id; } } if(statetime > 100) { state = 3; sprite_index = sBlobThrower; image_index = 7; frozenspr = sBlobThrowerFrozen; statetime = 0; } } if (state == 3) { if (image_index > 0) image_index -= 0.2; if (image_index < 3) vulnerable = 0; if (image_index <= 0) { state = 0; statetime = 0; } } } if (state == 100) { enemy_death(); } 1 603 7 0 0 -1 2 self 0 0 1 ///Mouth Hitbox bcollider = collision_rectangle(x-10, y-42, x+10, y-56, oBeam, false, true); if(bcollider != noone && vulnerable == 1) { myhealth = myhealth - 50; if (canflash) { flashing = 5; fxtimer = 0; } PlaySoundMono(hitsound); if(myhealth <= 0) state = 100; with (bcollider) { event_user(0); if(!pbeam) instance_destroy(); } } mcollider = collision_rectangle(x-10, y-42, x+10, y-56, oMissile, false, true); if(mcollider != noone && vulnerable == 1) { if (canflash) { flashing = 5; fxtimer = 0; } PlaySoundMono(hitsound); state = 100; with (mcollider) { event_user(0); } } 1 603 7 0 0 -1 2 self 0 0 1 ///Nohit if not ice/plasma if(!other.ibeam && !other.pbeam) with(other) { event_user(1); instance_destroy(); } else event_inherited(); 1 603 7 0 0 -1 2 self 0 0 1 with (other) { damage = 0; } 0 0 0 0.5 0.100000001490116 0 0.100000001490116 0.100000001490116 0.200000002980232 -1 0