Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Last night i was busy with coppercube creating a game and want to add custom mouse cursor to it... Also want to add an option to control sound or music volume for my game... controller setting option to redefine controls Any idea how to do all this... Thanks!! |
||||
|
It should be enough to launch this javascript code to change the sound volume. var s = ccbGetSceneNodeFromName("Sound1"); |
||||
|
I know that how to adjust volume of a single sound file... But what if my game consist of 100 of sfx and music ... I want global variable /function to stop increase or decrease sound volume... Anyway thanks for your reply... |
||||
|
from documentation: System Variables: The variables below this line are not part of a scene node, but always attached to an object named 'system'. Access them using system.attribute, for example system.soundvolume soundvolume Use the system variable system.soundvolume to change the global sound volume, of all sounds for the app. Has a value between 0 for quite to 100 for "full volume". |
||||
|
@ tim12345 thanks that helps me a lot... |
|