The Dink Network

Reply to Re: Dead bonca carcass

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
April 11th 2007, 02:55 AM
slimeg.gif
metatarasal
Bard He/Him Netherlands
I object 
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(&current_sprite,-1);
&slayy = sp_y(&current_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(&current_sprite,0);

<EDIT>
And don't forget to do something similar in the room's script.