The Dink Network

Sequences: Blood rain.

November 6th 2011, 09:04 PM
duckdie.gif
Trying to make a sprite explode in a blast of blood, I've run into a small pickle.
The procedure is:
Sprite freeze (duh.)
Sprite disappear. (sp_kill)
Blood rain (play_seq command)
The sprite disappears all right, but no blood rain
I've checked everything, semicolons, spaces. Is there something wrong with the command?
play_seq (seq, x, y);
November 6th 2011, 09:06 PM
wizardg.gif
You could try creating the blood rain as like a flash.
November 6th 2011, 09:56 PM
custom_msdink.png
MsDink
Peasant She/Her New Zealand
Tag - Umm.. tag, you're it? 
Make a new sequence heh thats what I do when I cant script the bloody thing - although as previously suggested to me
wait(lotsa numbers); 

worked a treat
If u kill it no comes back and 'scripty' goes no goes further
November 6th 2011, 09:57 PM
pillbug.gif
Pillbug
Peasant He/Him United States
Love! True love! 
Try preloading the sequence. Also, not sure if it matters, but remove the space between play_sequence and the open parenthesis.
November 6th 2011, 10:45 PM
spike.gif
play_seq()? No such command exists.
November 6th 2011, 10:49 PM
duckdie.gif
It doesn't?
Is it playseq(), playsequence() or seq()?
November 6th 2011, 10:58 PM
pillbug.gif
Pillbug
Peasant He/Him United States
Love! True love! 
So it doesn't

You should probably just use sp_seq instead of killing the sprite, and give it a brain of 7 so it plays through and then dies.

EDIT: Also, no variation of playseq exists.
November 6th 2011, 11:12 PM
spike.gif
What Pillbug said... If you want to, you can also create a new sprite to play the sequence in the old one's place (this method is a little bit more amateurish, but it's also less likely to bug out hideously ).

//get the old sprite's coordinates
int &mox = sp_x(&current_sprite,-1);
int &moy = sp_y(&current_sprite,-1);

//create blood sprite - giving it brain 7 so it dies on its own after playing the seq
int &BLAHD = create_sprite(&mox,&moy,7,[number of the blood seq],1);

//sequence GO!
sp_seq(&BLAHD,[number of the blood seq]);

PS. //this is fluff, so that the blood isn't punchable:
sp_nohit(&BLAHD,1);
November 6th 2011, 11:23 PM
pillbug.gif
Pillbug
Peasant He/Him United States
Love! True love! 
What Scratcher said... Also remember to preload_seq([number of the blood seq]); somewhere before you use it.