sBlobThrowerWater 0 -1 -4 0 oEnemy <undefined> 1 603 7 0 0 -1 2 self 0 0 1 action_inherited(); myhealth = 20; freezehp = 220; damage = 75; hitsound = sndEHit1; deathsound = sndEDeath2; frozenspr = sBlobThrowerWaterFrozen; canfreeze = 1 hitmissileexpl = 0; target = 0; canattack = 1; state = 0; image_speed = 0; sprite_index = sBlobThrowerWaterClosed; freezefall = 0; canhit = 1; statetime = 100; platyoffset = 0; blobsolid = instance_create(x-4,y-36,oBlobSolid); blobsolid.image_yscale = 2.75; blobsolid.image_xscale = 0.5; 1 603 7 0 0 -1 2 self 0 0 1 with (blobsolid) instance_destroy(); 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); if(frozen > 0) { sfx_stop(deathsound); PlaySoundMono(sndIceShatter); instance_create(x + irandom_range(-16, 16), y - 48, oIceShard); instance_create(x + irandom_range(-16, 16), y - 32, oIceShard); instance_create(x + irandom_range(-16, 16), y - 40, oIceShard); instance_create(x + irandom_range(-16, 16), y - 16, oIceShard); instance_create(x + irandom_range(-16, 16), y - 24, oIceShard); instance_create(x + irandom_range(-16, 16), y - 8, oIceShard); } } 1 603 7 0 0 -1 2 self 0 0 1 event_inherited(); enemy_active_check(40); enemy_target_check(90, 1); //if(instance_exists(boostblock)) boostblock.visible = 0; if (active == 1 && frozen == 0) { if (state == 0) { image_index += 0.1; if (target && statetime > 150) { state = 1; statetime = 0; image_index = 0; sprite_index = sBlobThrowerWater; frozenspr = sBlobThrowerWaterFrozen; } } if (state == 1) { if (image_index < 6) { image_index += 0.15; } if (image_index >= 6) { state = 2; statetime = 0; sprite_index = sBlobThrowerWaterIdle; frozenspr = sBlobThrowerWaterIdleFrozen; } } if (state == 2) { image_index += 0.1; if ((image_index >= 4.99) && (image_index <= 5.01)) { if(instance_number(oBlobWater) < 30) { repeat(irandom_range(3,6)) instance_create(x,y-40,oBlobWater); } } if(statetime > 100 && image_index >= 6) { state = 3; statetime = 0; sprite_index = sBlobThrowerWater; frozenspr = sBlobThrowerWaterFrozen; image_index = 6; } } if (state == 3) { if (image_index > 0) image_index -= 0.2; if (image_index <= 0 && statetime > 10) //changed { state = 0; statetime = 0; sprite_index = sBlobThrowerWaterClosed; frozenspr = sBlobThrowerWaterClosedFrozen; } } } if (state == 100) { enemy_death(); } //if (!instance_exists(blobsolid)) enemy_death(); 1 603 7 0 0 -1 2 self 0 0 1 if (frozen == 0) { with (other) event_user(1); } else { event_user(0); with (other) event_user(0); } 1 603 7 0 0 -1 2 self 0 0 1 if(other.ibeam) { frozen = 300; PlaySoundMono(sndFreezeHit); with (other) { event_user(0); if(!pbeam) instance_destroy(); } } else if(other.pbeam) { with (other) event_user(1); } else { with (other) { event_user(1); instance_destroy(); } } 1 603 7 0 0 -1 2 self 0 0 1 ///Blank code; do nothing 1 603 7 0 0 -1 2 self 0 0 1 with (other) { damage = 0; } 1 603 7 0 0 -1 2 self 0 0 1 if (hitscrewattack) { if (frozen == 0) { damage_player(damage, hpush, vpush, 0, 0); } } 1 603 7 0 0 -1 2 self 0 0 1 //if (hitpseudoscrew == 1) if(other.state == other.JUMPING && other.vjump == 0 && frozen == 0) { other.chargebeam = 0; other.nofire = 20; damage_player(damage, hpush, vpush, 0, 0); } else if (frozen == 0) event_inherited(); 0 0 0 0.5 0.100000001490116 0 0.100000001490116 0.100000001490116 0.200000002980232 -1 0