How do I toggle sound in cocoon JS?

Get help using Construct 2

Post » Tue May 20, 2014 8:16 pm

Using toggle silent is not working for cocoon js
Any solution?

Tested on Intel XDK and it's also not working
Seems the toggle sound function is not working on Android
Other way to toggle sound?
B
8
S
2
Posts: 203
Reputation: 1,169

Post » Tue May 20, 2014 11:22 pm

Sound responds differently depending on whether the sound is in the sound folder or the music folder. And iPhone handles music and sound files a little differently so, sometimes other options will work better like "mute" or "stop" but even that will depend on what folder the music or sound file is. I strongly suggest you read the audio section of the manual again at this point so it's fresh in your mind as you approach problem solving. In my experience you need to test on a variety of Android phones and you can expect some differences in how the sound responds depending on the OS version and the bowser (if it's a mobile web game). I cant speak for XDK but, Whether I use the audio object for mobile web or cocoonJS, I expect varied results with Android. I can almost always get the desired result for most devices. And of coarse, the newer the device, the less issues. Generally, I make sure everything works iPhone first and then approach the Android issues.

Read the manual.
Evaluate the if the correct use of sound and music folders being used.
Explore different options in audio object for stopping sounds or music.
Image
B
75
S
23
G
3
Posts: 673
Reputation: 9,283

Post » Wed May 21, 2014 1:16 am

I have tested the apk on many devices and all are same, the toggle music function is not working at all.

Still dont know what's wrong :(

I think i will use different method
B
8
S
2
Posts: 203
Reputation: 1,169

Post » Wed May 21, 2014 2:17 am

Tried global variable toggle method and it's still not working
Also tried to put the music to sound, also not working
Don't know what's wrong
B
8
S
2
Posts: 203
Reputation: 1,169

Post » Wed May 21, 2014 12:39 pm

shameless bump, i am seriously in despair
B
8
S
2
Posts: 203
Reputation: 1,169

Post » Wed May 21, 2014 12:42 pm

Have you tried using "mute" or "stop" in the audio object?
B
75
S
23
G
3
Posts: 673
Reputation: 9,283

Post » Wed May 21, 2014 4:47 pm

TheDom wrote:Have you tried using "mute" or "stop" in the audio object?


Tried that way and still not working
Tried both Cocoon js and iXDK too, still not responding
The sprite to toggle on and off music does nothing, tested on chrome browser and it works really well

I wonder if anyone has got some problem and the solution?

Can somebody also posted tutorial to toggle music manually? I tried this one
*cant post url* veryvariable-toggle-between-two-states
And it seems not working with music/sound
B
8
S
2
Posts: 203
Reputation: 1,169

Post » Thu May 22, 2014 3:58 pm

Shameless bump again
I'm in super despair now :(
B
8
S
2
Posts: 203
Reputation: 1,169

Post » Sat May 24, 2014 1:18 pm

Shameless bump again!
B
8
S
2
Posts: 203
Reputation: 1,169

Post » Sun May 25, 2014 1:43 pm

Bump, haven't find solution yet
B
8
S
2
Posts: 203
Reputation: 1,169

Next

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 11 guests