![]() |
Uhm...
Is their a way to make it so if your close to an npc that is streaming a song you will hear it louder, and if you walk away it will go lower. :O
|
setmusicvolume(left,right); changes the volume. I haven't used it, though, so I don't know how left and right work. I'm assuming left brings it down, right puts it up?
|
No... left/right as in left/right speakers.
Values are most likely 0-100. |
Then use the distance formula! =D
|
HTML Code:
play2 filename,x,y,volume; plays a sound/music at x,y with the specified volume |
I think if you ran that function more than once, it would just play the file over again. Not sure.
|
Right, so which answers correct? :O
|
Quote:
|
NPC Code:$pref::graal::midivolume You could try modifying these, but they effect all sounds, not just that one sound. I was playing the option variables, but I found that some of them didn't apply until I restarted Graal. If you don't want to modify the volume of all sounds, I suggest using the setvolume function. |
Quote:
I used it for fireworks once. I wish I could find those. :( They were on DD a long time ago. |
Quote:
|
Quote:
|
Quote:
density = mass / volume |
Quote:
|
O.o, wait wait.
So now you guys are making it not go through walls, but find a lil crack somewhere to get to me? lol. |
Quote:
|
Quote:
Anywho, I dont' think it will work for songs. |
Quote:
For music: eventually save the position where the music should be loudest (position of the radio npc or so) and then change the music volume with setmusicvolume all few moments (0.05 seconds) depending on the distance of the player to the distance of the music source / radio npc. This kind of system is also good for environmental sound effects, we are using that for the ocean sound on Era and the shephard melody on Kingdoms (xmas quest), changing the volume depending on the distance to the source (with play2). |
| All times are GMT +2. The time now is 06:23 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.