The Dink Network

Reply to Re: blackness

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 27th 2005, 01:54 PM
fish.gif
Simeon
Peasant He/Him Netherlands
Any fool can use a computer. Many do. 
The problem is that the sprite and the script die quickly when void die(void) has been initiated.. at least something along those lines so you can't use that script to execute code with delay or cutscenes. What you need to do, is to spawn the script or create a new sprite with a script attached. Here's what I currently use in one of my scripts:

//in void die(void)
int &temp = create_sprite(-50, -50, 0, 71, 1);
sp_script(&temp, "en-tr22d");

Basically it creates a new sprite with a script attached. The script attacked then looks like:

void main(void)
{
//code
kill_this_task();
}

But, you can also spawn(); the script.