Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > irrKlang
Play only after another sound finishes

dari1495
Registered User
Quote
2017-04-02 20:23:03

Hi guys,

I'm trying to add a sound to an attack animation in a game where, if you hold the attack button pressed, it keeps attacking. The way I added the code for the sound, using play2D(), makes one sound to overlap with the last one for every iteration of the attack, very annoying.

So, I wonder if there is a way to make the engine sync, or blockable, to not let it play any other sound until the last one finishes (It's not problematic, the other fx aren't necessary at the same time)

Thanks in advance!


erik
Registered User
Quote
2017-04-03 05:34:53

Yes, you can test if the sound has finished playing, using ISound::isFinished()


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Inter?ational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact