Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark Physics & Dark A.I. & Dark Dynamix / play sound when collision?

Author
Message
David iz cool
19
Years of Service
User Offline
Joined: 21st Sep 2005
Location: somewhere lol :P
Posted: 28th Aug 2006 03:20
whats the best way to play a sound when; for example a cube hits a static box ground????
imekon
18
Years of Service
User Offline
Joined: 3rd Jul 2006
Location:
Posted: 28th Aug 2006 10:58
Something like this:



If you don't have the "if not sound playing()" you'll get the sound trying to restart repeatedly which sounds wierd. There are a LOT of collision events. It would have been nice if the collision force functions worked, then you could decide if a collision was big enough to create a sound.

"Reality Bites"
David iz cool
19
Years of Service
User Offline
Joined: 21st Sep 2005
Location: somewhere lol :P
Posted: 28th Aug 2006 15:48
thanks!
ESP
18
Years of Service
User Offline
Joined: 2nd Aug 2006
Location: London, England, U.K.
Posted: 29th Aug 2006 15:30
Hi All,

When I run the Dominoes demo, I get all the sound effects first, then the animation. Wierd... -*
Robin:

Login to post a reply

Server time is: 2024-11-24 14:53:29
Your offset time is: 2024-11-24 14:53:29