The Dink Network

Reply to Re: Making a sprite dissapear later...

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:
 
 
August 25th 2011, 12:38 PM
spike.gif
If you have a lot of sprites you want to disappear, or you want to have the sprites reappear at some point, visions are indeed a good way to go.

If it's just one sprite you want to kill off, though, it's simpler to do something like this:

// I am the sprite that is going to die
void main()
{
if (&story == 3)
{
int &dido = sp_editor_num(&current_sprite);
if (&dido != 0)
editor_type(&dido,1);
sp_active(&urrent_sprite,0);
}
}