Cuing sounds in bgt
Hello,I have always wondered how to cue sounds in bgt. For example to play a corpse sound just after the death sound is finished.Can you please tell me a way to do that? Thanks.
URL: http://forum.audiogames.net/viewtopic.php?pid=254286#p254286
Re: Cuing sounds in bgt
I've solved this by using timer which holds the length of the sound file. Example:if(sound_timer.elapsed>=my_sound_file.length){sound_timer..restart();my_sound_file.stop();next_sound_file.load("somefile.ogg");next_sound_file.play();}H
Re: Cuing sounds in bgt
Hello,Thank you, I will try this
URL: http://forum.audiogames.net/viewtopic.php?pid=254302#p254302
___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com
Re: Cuing sounds in bgt
Are you using the sound pool, or sound objects?There are several ways, depending on how your code is arranged.I'd probably do something like give the enemy/player/etc either a handle to their currently-playing sound, or the number of the slot in the sound_pool