Are you new? Sign up now
The Daily Click
Klik Coding Help
Sound Effect Question
The Ion Adventurer
9th August, 2006 at 01:16:39 -
How would you do so the sound effect only plays if the active who causes it is visible on screen? Or maybe to make it louder as you approach the objects...
Thank you in advance
9th August, 2006 at 03:27:11 -
You could just use angle calculator to test the distance between the player and the source of the sound, and then use DMC2 object to play the sample and set the volume depending on the distance, yes?
9th August, 2006 at 08:28:39 -
No need for the angle calculator... sqr( (x1-x2) pow 2 + (y1-y2) pow 2 ) gives the distance, but only in MMF... This is basics in math btw (using the Pythagorean theorem)
TDC is my stress ball
9th August, 2006 at 08:47:31 -
I always wondered about how thats done, and damn the solution looks hard
Born in a Bowling Alley
9th August, 2006 at 18:18:32 -
"..This is basics in math btw (using the Pythagorean theorem) "
Translation: You should already KNOW this, imbacile!
I didn't know it, lol. Thank you for the tip
"Del Duio has received 0 trophies. Click here to see them all."
"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"
DXF Games, coming next: Hasslevania 2- This Space for Rent!
9th August, 2006 at 19:30:12 -
And with MMF2 you can change the volume of samples and channels based on the distance, rather then using DMC2.
Worth A Click