Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Feature requests and bug reports
Sound volume - using variables

Robo
Guest
Quote
2019-10-24 15:37:21

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 !!


ruined
Registered User
Quote
2019-10-24 19:22:32

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.


Robo
Guest
Quote
2019-10-25 01:31:28

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 ?


Robo
Guest
Quote
2019-10-25 01:52:52

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...


Robo
Guest
Quote
2019-10-25 02:37:35

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);


carlosm
Registered User
Quote
2019-11-12 05:17:01

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.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Int?rnational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact