Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > irrKlang
Play only after another sound finishes

Registered User
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!

Registered User
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: "Intern?tional" (you are not logged in)




Possible Codes

Feature Code
Link [url] [/url]
Bold [b]bold text[/b]
Image [img][/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]



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