The Dink Network

Killing a sound and Dinkslayer ...

February 24th 2003, 01:41 PM
maidenp.gif
Question 1 : how to kill a wav-file
(I need something like stopmidi(); but I don't what)
If I use sound_set_kill(); it does nothing but if I put the number of the sound I want to kill in it (sound_set_kill(70); ), the whole thing crashes...

Question 2 : how to make Dink attack like a slayer.
I already changed the base attack , the base walk and the base Idle but now he keeps on hitting with his sword instead of his claws...

Please reply if you know the answer

thanx
February 24th 2003, 02:22 PM
burntree.gif
Striker
Noble She/Her United States
Daniel, there are clowns. 
Okay, it's been a really long time since I've done anything Dink related, so my memory is not 100%. I can't help you with the 1st problem, but I can with the second.

Are you sure the LAST base attack sequence used was the same number as what is used in an enemy slayer scipt? It sounds like the sword animation is being written over that attack.

Try placing a static sprite of a slayer attacking somewhere in the game, then load up the game and try to recreate the problem. If that slayer sprite has turned into Dink, then you know that's what happened.

If you still don't know what to do from there, feel free to post here again.
February 24th 2003, 02:31 PM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
You have to do something like this:

int &mysound = playsound(Blah Blah);
sound_set_kill(&mysound);

Note: that's if the kill sound command will be given in the same script. If not, replace &mysound with a global variable.
February 25th 2003, 01:13 AM
maidenp.gif
Thanx the sound solution works perfect !
February 25th 2003, 01:18 AM
fish.gif
Simeon
Peasant He/Him Netherlands
Any fool can use a computer. Many do. 
2 - You could modify the sword script to let Dink attack like a slayer if a certain var is true. That's how I changed Dink into a goblin