Reply to Re: Dead bonca carcass
If you don't have an account, just leave the password field blank.
I've done that in the past in the Scourger.
I remember using three global variables to actually make it work. One for the body's x value, one for its y value and one for whether or not it should be present (the normal story variable).
It works pretty much like this: A script attached to a room determines whether a body or a slayer should be drawn, in the die procedure add this: (for a slayer, taken from the Scourger)
//Globals for the x and y posistions:
&slayx = sp_x(¤t_sprite,-1);
&slayy = sp_y(¤t_sprite,-1);
//Creating of the body:
int &junk = create_sprite(&slayx,&slayy,0,645,1);
//I need to make a cutscene or something when Dink touches the body:
sp_touch_damage(&junk,-1);
sp_script(&junk,"s4-corpse");
//Let's make sure the 'normal' body isn't drawn:
sp_active(¤t_sprite,0);
<EDIT>
And don't forget to do something similar in the room's script.
I remember using three global variables to actually make it work. One for the body's x value, one for its y value and one for whether or not it should be present (the normal story variable).
It works pretty much like this: A script attached to a room determines whether a body or a slayer should be drawn, in the die procedure add this: (for a slayer, taken from the Scourger)
//Globals for the x and y posistions:
&slayx = sp_x(¤t_sprite,-1);
&slayy = sp_y(¤t_sprite,-1);
//Creating of the body:
int &junk = create_sprite(&slayx,&slayy,0,645,1);
//I need to make a cutscene or something when Dink touches the body:
sp_touch_damage(&junk,-1);
sp_script(&junk,"s4-corpse");
//Let's make sure the 'normal' body isn't drawn:
sp_active(¤t_sprite,0);
<EDIT>
And don't forget to do something similar in the room's script.