Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
3D Audio Broken / Playing In Engine / Playing in Scenes it is not Placed

psychatog
Registered User
Quote
2021-09-26 16:51:34

3D audio shouldn't play while you're using the editor/engine itself, but for some reason, it transfers over to other scenes and will layer with all other 3D audio. Why is audio playable from the editor/engine if there's no tool in the editor/engine to force it to shut off?


VP
Guest
Quote
2021-09-26 17:16:26

The 3D audio plays in the editor so you can preview the sounds in realtime. If you move away from an object in the editor, the sound should get quieter.

If there was no live sound in the editor, you'd have to run your game to see if the 3D sounds are correct.

I agree, there should be a mute button in the editor - but you can simply mute your PC audio instead.

In the same way, you can turn textures on/off, wireframe on off. It's personal preference if you want to see textures/verteces and hear sounds in the editor - but by default, obviously, textures and sounds are visible and audible.


Guest
Guest
Quote
2021-09-26 17:57:15


/*
<action jsname="action_Test" description="This is a test action">
<property name="ChangeWhichNode" type="scenenode" />
</action>
*/

action_Test = function()
{
};

// called when the action is executed
action_Test.prototype.execute = function(currentNode) {
if(ccbGetSceneNodeProperty(this.ChangeWhichNode,"Type") !== "sound"){
print("Not an audio node!");
return;
}
print(ccbGetSceneNodeProperty(this.ChangeWhichNode,"PlayMode"));
if(ccbGetSceneNodeProperty(this.ChangeWhichNode,"PlayMode") == "nothing") {
ccbSetSceneNodeProperty(this.ChangeWhichNode, "PlayMode", "looping");
print("Playing audio");
}
else {
ccbSetSceneNodeProperty(this.ChangeWhichNode, "PlayMode", "nothing");
print("Stopping audio");
}
}


Here's a CC action written by Youtuber Gamefromscratch that allows you to toggle the 3D sound on/off. He also has a CC tutorial on Youtube (& his website--link below) that someone may find helpful.

https://devga.me/tutorials/coppe...


just_in_case
Moderator
Quote
2021-09-26 18:05:54

or you can simply open the sound manager tab and can slide the volume bar to the extreme left to turn off the sounds and music in the editor.
Hope that helps.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "?nternational" (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