Try something like this:)
But you have to create in graphic program pcx with splash blood.
function explosion_fun() // your function name.
{
MY.PASSABLE = ON; // passable pieces
MY.FLARE = ON; MY.LIGHT = ON; MY.BRIGHT = ON; MY.BLEND = ON;
MY.LIGHTRED = 255; // very red for fire 255 bright 0 black
MY.LIGHTGREEN = 150; // medium blue
MY.LIGHTBLUE = 0; // no blue
MY.LIGHTRANGE = 300;
MY.FRAME = 8;
ent_playsound (my, expl_sound, 100);
WHILE(1)
{
if(my.rame < 16){MY.LIGHTRANGE += 2;MY.FRAME+= time;}
else{REMOVE ME;} // remove all of the function.
WAIT (1);
}
}
action enemy
{
if(my.life <=0){create(<expl2+16.pcx>,MY.POS, explosion_fun);}
}