Why doesn't this work? Brains and pseqs.
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(¤t_sprite, 0);
sp_pseq(¤t_sprite, 704);
int &temp = random(2, 1);
sp_pframe(¤t_sprite, &temp);
sp_brain(¤t_sprite, 0);
sp_pseq(¤t_sprite, 704);
int &temp = random(2, 1);
sp_pframe(¤t_sprite, &temp);
Put an sp_seq(¤t_srite,0); before sp_pseq(¤t_sprite,704);, it will stop the current animation right away so you don't have to wait until it ends automatically.