|
Post by pvtprivate on May 29, 2019 8:32:46 GMT
I am tying to create an SFX for a charged weapon, i have 3 sounds, charge up, charge loop, and charge down. Currently i have 3 sound groups set up, one for each sound. Then in script I start the charge loop when the charge up sound have finished playing using the SoundFinished event, but this creates a gap in the transition from the charge up to charge loop. I need the charge loop sound to start playing after the charge up sound, and then when the charging is finished or canceled, start the charge down sound, stopping the loop or charge up sounds.
|
|
|
Post by DarkTonic Dev on May 29, 2019 16:49:40 GMT
Sound Finished event fires *after* it stops, so it will have a gap. That approach won't work. If you are looping a sound until some event, it's best to just play the next sound and stop the first sound via script. Don't use Sound Finished. Also, you may not be able to get gapless between 2 different Sound Groups. You may need to use "Variation Mode" of "Looped Chain" on the Sound Group, which can only play one sound at a time, plus fading. So all your sounds will need to be Variations of the same Sound Group. Read about that here: www.dtdevtools.com/docs/masteraudio/SoundGroups.htmHope that helps.
|
|