Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
CopperCube desperately needs to allow you to input a variable name as the volume level when playing a sound. I NEED to dynamically adjust sound levels and effects in game and CC doesn't allow it !! every other game engine seems to have this - why CC - please add ASAP !! |
||||
|
Hello, Robo. I know how to do that, and I'll help you privately if you pay. May I have your email address or Discord account name? I'll share a CCB file and provide detailed instructions. |
||||
|
wrote: Hello, Robo. I know how to do that, and I'll help you privately if you pay. May I have your email address or Discord account name? I'll share a CCB file and provide detailed instructions. Yes, my email is codellrob@gmail.com I created a free inventory system for CC users but if you want to charge me then I will have a look. Let me know of any limitations of using that and can it be adjusted via javascript directly or is it a hack in using some of the existing sound objects already ? |
||||
|
wrote: Hello, Robo. I know how to do that, and I'll help you privately if you pay. May I have your email address or Discord account name? I'll share a CCB file and provide detailed instructions. creating 3D sounds has always been a weak point in my game. I just been playing with 3D sounds and attached to player as 2D sound and found I could change its volume using javascript as required....strange that no-one in the forum bothered to let me know this when asked a few times before.... I may not need your code for this unless its better than doing the above scenario. The above works but may have to attach a ridiculous number of sound nodes to the player to adjust each sound separately... |
||||
|
wrote: Hello, Robo. I know how to do that, and I'll help you privately if you pay. May I have your email address or Discord account name? I'll share a CCB file and provide detailed instructions. dang - i never tried this before but it works just fine for my needs. It also is not mentioned in the CopperCube list of objects to select from in game - yet still works: var s = ccbGetSceneNodeFromName("Ambient"); // a 3D sound node attached to Player as a 2D sound var snd = "attack1"; // whatever your sound file name is you want to change to var sound = "data/sd/"+snd+".s" // fixed location of set sounds in game under CopperCube directory ccbSetSceneNodeProperty(s, "SoundFileName", sound); |
||||
|
maybe this works just an idea i haven't tested .. write a script that gives the player audio and control how far he can be heard by reducing and increasing the sound area. maybe even moving the sound object. it's bizarre but it's a solution that can work 3D Radius:Â This is the radius of the 3D sound. A radius of a bee will be much smaller than the radius of a Jet engine, for example. Inside this radius, the sound is played with its maximum volume, and outside the radius, the 3d sound will become more silent the farer away the listener is. |
|