Are you new? Sign up now
The Daily Click
Klik Coding Help
Sound Effect Question
The Ion Adventurer
9th August, 2006 at 1:16:39 AM -
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 3:27:11 AM -
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 8:28:39 AM -
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 8:47:31 AM -
I always wondered about how thats done, and damn the solution looks hard
Born in a Bowling Alley
9th August, 2006 at 6:18:32 PM -
"..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 7:30:12 PM -
And with MMF2 you can change the volume of samples and channels based on the distance, rather then using DMC2.
Worth A Click