The Dink Network

Reply to Re: How do i make it so i can pick up gold

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:
 
 
October 11th 2005, 11:09 AM
slimeg.gif
metatarasal
Bard He/Him Netherlands
I object 
Just use the standard void die() procedure from one of the enemies in the source folder.
After some modifications the void die() procedure would look like this:
void die( void )
{
int &hold = sp_editor_num(&current_sprite);
if (&hold != 0)
editor_type(&hold, 6);

&save_x = sp_x(&current_sprite, -1);
&save_y = sp_y(&current_sprite, -1);
int &golda = create_sprite&save_x,&save_y,0,178,3);
sp_script(&golda,"<the name of the script of the gold>");
}