sequences
How do you make a sprite run through a certin sequence, eg, a goblin with a hammer facing direction 8 hit?
thanks.
thanks.
and for the sprite to use the hit sequens the engine mst know what base attack the object has
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)
Duh, of coourse it must. The engine must know which sequence were the goblin attack graphics is.
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.
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.