The Dink Network

Re: I need help with changing the sequence of a sprite

September 23rd 2007, 05:05 PM
sob_scorpy.gif
DinkDude95
Peasant He/Him Australia
The guy with the cute D-Mod. 
Okay, what I want is to have the sprite walk up to Dink, and I've got that. (These are custom made graphics too, note.) Then I want the sprite to (this is all in one cutscene) change to its hitting sequence. But, after he hits, I want him to go back to the normal seq. So, how do I do it? sp_seq(#, #);? I tried that, and it doesn't work.
September 23rd 2007, 05:22 PM
knightg.gif
cypry
Peasant He/Him Romania
Chop your own wood, and it will warm you twice. 
I'm not sure this will help, but you can try using sp_pseq, instead of sp_seq.
September 23rd 2007, 08:20 PM
sob_scorpy.gif
DinkDude95
Peasant He/Him Australia
The guy with the cute D-Mod. 
I also tried that. I used sp_pframe to play the seq instead, but that didn't work either.
September 23rd 2007, 08:42 PM
spike.gif
Use sp_seq(&current_sprite,0); to terminate the animation, or let it play through before changing the sequence. Should look something like this:

sp_seq(&current_sprite,102);
sp_frame(&current_sprite,1);
wait(250);
sp_seq(&current_sprite,0);
sp_pseq(&current_sprite,12);
sp_pframe(&current_sprite,1);
September 23rd 2007, 09:45 PM
sob_scorpy.gif
DinkDude95
Peasant He/Him Australia
The guy with the cute D-Mod. 
Okay, I'll try that, thanks. But why sp_pseq(&current_sprite, 12);? What makes you think the sequence is 12?
September 23rd 2007, 10:08 PM
spike.gif
Oh, it's just an example. I like to use random numbers instead of ##'s or something like that since I usually test my scripts before posting.