The Dink Network

sequences

December 6th 2004, 02:13 PM
pig.gif
How do you make a sprite run through a certin sequence, eg, a goblin with a hammer facing direction 8 hit?

thanks.
December 6th 2004, 04:16 PM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
Try

sp_seq(&sprite, 758);
December 9th 2004, 04:17 PM
pig.gif
cheers
December 9th 2004, 06:18 PM
pq_frog.gif
Ric
Peasant They/Them Canada
 
Might need brain 6 too.
December 9th 2004, 06:50 PM
fairy.gif
Glennglenn
Peasant He/Him Norway
GlennGlenn doesn't want a custom title. 
and for the sprite to use the hit sequens the engine mst know what base attack the object has
December 9th 2004, 11:21 PM
wizardg.gif
chaotic
Peasant He/Him
 
Actually, a sprite wont need the base attack to activate the sequence, thats for if you want a sprite to act like an enemy(Hits dink if he gets close, etc)
December 10th 2004, 12:20 AM
fairy.gif
Glennglenn
Peasant He/Him Norway
GlennGlenn doesn't want a custom title. 
Duh, of coourse it must. The engine must know which sequence were the goblin attack graphics is.
December 10th 2004, 06:35 AM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
Ric: Yeah, but that's only if you want the goblin to keep hitting in the up direction forever. If it is just a one-time thing, sp_seq(&goblin, 758); should do the trick.

Glenn: No, it doesn't. 758 is the sequence of the goblin attack graphic. Hoggy just wants it to attack in the up direction through a script (I assume), so sp_seq(&goblin, 758); will make that happen. If he wanted it to attack Dink on its own, you would be correct.
December 14th 2004, 12:56 PM
spike.gif
preload_seq(758);
sp_seq(&goblin, 758);
sp_pframe(&goblin, 1);

to make sure it works.