The Dink Network

Making dead things talk

January 15th 2011, 11:52 AM
boncag.gif
JugglingDink
Peasant He/Him United Kingdom
Streetfish 
Is it possible to make a dead enemy talk?

An enemy is created via the create_sprite() function, then I attach the enemy script to it with sp_script. Once it's dead, if I try and make it talk (it has the local variable &slay3) with say_stop("text", &slay3); the text doesn't show up, or it shows up at some random place nowhere near the dead body.

So my question is, how do I make the text appear above the dead body? I'm sure I've seen it done in Dink before, I'm just not sure how. If it's stupidly complicated or something, then this is for a side-quest so I could probably take it out or redo the fight differently.
January 15th 2011, 12:31 PM
custom_iplaydink.gif
iplaydink
Peasant He/Him Sweden
Hmm.. 
I'd remove the dead guy and create a new one with that guys death frame, and make him talk.
January 15th 2011, 12:52 PM
spike.gif
You can also change the dead guy's brain in void die() (to 0 for example), though you will still have to change his sequence manually so that the sprite will look like it's dead.
January 15th 2011, 01:30 PM
wizardb.gif
Kyle
Peasant He/Him Belgium
 
Changing the brain is by far the optimal way to do it
January 15th 2011, 01:51 PM
boncag.gif
JugglingDink
Peasant He/Him United Kingdom
Streetfish 
Hey, I never thought of doing it like that! Thanks scratcher