Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Why sometimes my project has no voice? |
||||
|
Probably because of the change of project directory or the location of the sound files. Sound files that has been added through the sound node get embedded into the project and sound files that has been uaed by the "play sound" action doesn't get embedded into the project. Its always better to use sound nodes to hold all the sound files and set their playmode to nothing. And simply change their playmode, during the gameplay to execute the sound effect. That way the sounds file will always be embedded into the scene. Some sound formats only works in the editor but doesn't play in the final exe, make sure you are working with the correct sound format. Hope that helps. |
||||
|
That's good advice from 'just_in_case' for when you only use a limited number of sounds. For those like me using hundreds of different sounds becomes impractical to do it that way as most sounds might never play as so many variations. In this case just load them as needed and you will need to setup a folder like 'sounds' or something and put all your sounds in there. For my game - I use separate sound nodes for music, general, ambient, voice, walking and weather and separate folders for each one as want multiple sounds playing at the same time.. The lookup directory will look something like this: var node = ccbGetSceneNodeFromName("Sound"); var snd = "sounds/robot.ogg"; ccbSetSceneNodeProperty(node, "PlayMode", "nothing"); ccbSetSceneNodeProperty(node, "SoundFileName", snd); ccbSetSceneNodeProperty(node, "Volume", 80); ccbSetSceneNodeProperty(node, "PlayMode", "play_once"); // sound volume adjustment optional You need to reset these common sound nodes each time a sound is played (to 'nothing') else will only play once... |
||||
|
It's a bug of your version of Coppercube. There is another bug "lost textures". Upgrade your Coppercube to new version. |
|