The Dink Network

Reply to Re: The noob needs help, AGAIN

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 24th 2006, 03:25 PM
slimeg.gif
metatarasal
Bard He/Him Netherlands
I object 
sp_active(); will kill the sprite the script is attached to and that causes the script to be killed and a dead script doesn't work

Do this:

sp_active(&current_sprite, 0);
script_attach(1000);
int &suprise1 = create_sprite(&witch_x,&witch_y, 0, 167, 1);
sp_seq(&suprise1, 167);
playsound(24, 22052, 0, 0, 0);
wait(500);
sp_active(&suprise1, 0);
wait(200);
say_stop("AAAAAAA", 1);
say_stop("AAAAAAAA", 1);
wait(100);

unfreeze(1);
&story = 3;

kill_this_task();
}

This will attach the script to nothing which will make sure it will continue to run properly. And don't forget the kill_this_task(); command at the end if you don't want memory trouble...