Reply to Try this.........
If you don't have an account, just leave the password field blank.
int &hold = sp_editor_num(¤t_sprite);
if (&hold != 0
editor_type(&hold, 6);
//This is the typical sprite kill used in the original dink. It is at the end of a creatures die procedure. When drawing a screen, the engine checks each sprite editor number to see if that sprite needs to be there.
use editor_type(&hold, 6); to let the sprite come back after 5 minutes, or
editor_type(&hold, 1); to kill the sprite completely.
useing sprite_active() is good for killing a sprite if a condition is met. eg:
void main ()
{
if (&story > 5)
{
sprite_active(¤t_sprite,0);
}
//other main stuff here.
}
if (&hold != 0
editor_type(&hold, 6);
//This is the typical sprite kill used in the original dink. It is at the end of a creatures die procedure. When drawing a screen, the engine checks each sprite editor number to see if that sprite needs to be there.
use editor_type(&hold, 6); to let the sprite come back after 5 minutes, or
editor_type(&hold, 1); to kill the sprite completely.
useing sprite_active() is good for killing a sprite if a condition is met. eg:
void main ()
{
if (&story > 5)
{
sprite_active(¤t_sprite,0);
}
//other main stuff here.
}