The Dink Network

Reply to Re: A scripting problem

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:
 
 
June 21st 2005, 10:39 AM
fish.gif
Simeon
Peasant He/Him Netherlands
Any fool can use a computer. Many do. 
There are various ways to fix this. One way is to use sp_brain(&current_sprite, 0); like done in en-gmog.c (like scratcher said in this thread) and then the code or you can do:

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

in void die(void) which creates a random sprite outside the screen with a script attached, then you can place the cutscene/code in that script (in void main(void)) - where en-tr22d is the name of the script, in this case.

Edit: but as it's a short piece of code, the first solution would suit fine I guess (adding sp_brain(&current_sprite, 0); )