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.
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(¤t_sprite);
if (&hold != 0)
editor_type(&hold, 6);
&save_x = sp_x(¤t_sprite, -1);
&save_y = sp_y(¤t_sprite, -1);
int &golda = create_sprite&save_x,&save_y,0,178,3);
sp_script(&golda,"<the name of the script of the gold>");
}
After some modifications the void die() procedure would look like this:
void die( void )
{
int &hold = sp_editor_num(¤t_sprite);
if (&hold != 0)
editor_type(&hold, 6);
&save_x = sp_x(¤t_sprite, -1);
&save_y = sp_y(¤t_sprite, -1);
int &golda = create_sprite&save_x,&save_y,0,178,3);
sp_script(&golda,"<the name of the script of the gold>");
}