The Dink Network

Reply to Re: How can I code this situation?

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:
 
 
May 31st 2008, 01:42 AM
sob_scorpy.gif
DinkDude95
Peasant He/Him Australia
The guy with the cute D-Mod. 
Have the NPC walk off the screen with a move() command, then if you want to kill it off, use sp_active();

So, it would be something like this:

move_stop(&npc, 2, -100, 1);
sp_active(&npc, 0);

If the sp_active(); value of a sprite is 0, then the sprite is 'dead'. It disappears. So, that's why it's a good idea to have it walk off the screen before it vanishes. Also, note that once you inactivate something, you can't activate it again. It is gone forever.