The Dink Network

Why doesn't this work? Brains and pseqs.

March 10th 2008, 01:27 PM
dinkdead.gif
The sprite is brain 6, and I want to stop it animating and change the seq. Sequence 704 is like the dead slimes. When I try the following, it just freezes in mid seq but doesn't change unless I put a longish wait in (like 500) which isn't good. What's wrong? It works if I use sp_seq() instead but then I'd have to take out the other frames in that sequence and reshuffle everything, which I don't really want to do.

sp_brain(&current_sprite, 0);
sp_pseq(&current_sprite, 704);
int &temp = random(2, 1);
sp_pframe(&current_sprite, &temp);
March 10th 2008, 01:44 PM
spike.gif
Put an sp_seq(&current_srite,0); before sp_pseq(&current_sprite,704);, it will stop the current animation right away so you don't have to wait until it ends automatically.
March 10th 2008, 02:01 PM
dinkdead.gif
Perfect. Thanks!