The Dink Network

Reply to Re: Simple question

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:
 
 
April 26th 2006, 06:36 PM
custom_magicman.gif
magicman
Peasant They/Them Netherlands duck
Mmmm, pizza. 
True, it makes the script wait, but it doesn't stop the Dink engine from killing the sprite and thus the script. With 'killing', I mean "real" killing, as in removing from the game world. That's why you should use spawn(), script_attach() or something similar, when you want a cut-scene after an enemy's death.

Try

void die (void)
{
wait(&long_enough);
say("Blaaat",&current_sprite);
}

For large values of &long_enough (10000 should do the trick), you will not see the text.