≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Playing a sound once in a loop
Posted by:
(you are not logged in)
Enter the missing letter in: "Internationa?"
(you are not logged in)
Text:
[quote][b]george7378[/b] wrote: Hi there, I'm using irrKlang in my 3D game, which of course uses a loop to render frames, update physics, etc... and I am having a little problem. Let's say I want to play a sound when a certain event happens, i.e. when a certain location is passed or a certain object is used. If I just call play2D() when the event happens, then every frame, the sound will be played from the beginning again as long as the condition is satisfied, resulting in a constant loop of the sound being played freshly every frame. So my question is: How can I play a sound in irrKlang once and once only in this situation? i.e. only play it the first time the game detects that the condition is satisfied, rather than every time? Thanks, I hope that was clear![/quote]
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