How to kill a sound? [NT]
How to kill a sound? (long, music file)
sound_set_kill(sound bank) doesn't work. Also the sound I want to kill is not a survive sound.
Thanks in advance,
EV
sound_set_kill(sound bank) doesn't work. Also the sound I want to kill is not a survive sound.
Thanks in advance,
EV
You know how to use sound bank variables, right?
int &my_sound_bank = playsound();
sound_set_kill(&my_sound_bank);
And that should work... with proper numbers in playsound(), of course.
int &my_sound_bank = playsound();
sound_set_kill(&my_sound_bank);
And that should work... with proper numbers in playsound(), of course.
: int &my_sound_bank = playsound();
: sound_set_kill(&my_sound_bank);
: And that should work... with proper numbers in playsound(), of course.
Nope, doesn't work. Is there any requirements where in the script that should be? (I must kill a sound when clicked start_3.c button, which skips the intro) e.g. game hasn't really "started" yet, it is still in the mode 1.
: sound_set_kill(&my_sound_bank);
: And that should work... with proper numbers in playsound(), of course.
Nope, doesn't work. Is there any requirements where in the script that should be? (I must kill a sound when clicked start_3.c button, which skips the intro) e.g. game hasn't really "started" yet, it is still in the mode 1.
: Care to share the relevant scripts?
Not needed anymore, I got the script to work.
The problem got something to do with globals. (can't quite say what, I just copied the globals from main Dink over those that were in my DMod, and it started working) Quite odd though, as I haven't edited any of the important globals. :| (Must've been mistake, dohh)
Not needed anymore, I got the script to work.
