return from URL/Ads error

Discussion and feedback on Construct 2

Post » Thu Aug 15, 2013 1:14 pm

Hi, i have a problem with sound. I have some sprites which direct the user to specified URL (or it could be Ad banner with specified url) and music in the game. That works fine, but when the user click on it and than he come back to the game from the URL (or from Ad url) the music play twice. The old music (before user went out to other web) is still playing, and when he come back to the game new music start playing together with old music.

We are using personal licence of C2 and Cocoonjs and the problem is on Android.

Sorry for my English, and thank you all for your advice :-)
B
9
S
2
Posts: 13
Reputation: 676

Post » Thu Aug 15, 2013 8:53 pm

Be sure to use the Browser plugin condition "On suspended" to stop the music when the user leaves and use the Browser plugin condition "On resumed" to play the music again when he gets back.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
284
S
109
G
91
Posts: 7,317
Reputation: 87,483

Post » Fri Aug 16, 2013 7:36 am

thank you...i will try it. Hope it will work with Ads too...

B
9
S
2
Posts: 13
Reputation: 676

Post » Sun Aug 18, 2013 7:26 pm

so it doesnt work...old music is still playing. I tried to stop all sounds/stop "taged sound" on suspended condition and nothing.
B
9
S
2
Posts: 13
Reputation: 676

Post » Fri Sep 13, 2013 9:47 am

@kyatric im using on On Suspend and my music are always continues(twice)what are we goint to do ? pls help me kyatric
B
5
S
2
G
3
Posts: 53
Reputation: 2,468

Post » Fri Sep 13, 2013 11:29 pm

@jhonnel09: post your capx to see if there might be an issue with your events.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
284
S
109
G
91
Posts: 7,317
Reputation: 87,483

Post » Sat Sep 14, 2013 10:08 am

here is my capx : https://www.dropbox.com/s/ryy1dcu434pg0hb/sample.capx
and Here is my a

apk:
https://www.dropbox.com/s/l9otbyqx1n2pnzv/sample_2013_09_14-06_05_57_GooglePlaystoreV3_debug_signed.apk


https://www.dropbox.com/s/l9otbyqx1n2pnzv/sample_2013_09_14-06_05_57_GooglePlaystoreV3_debug_signed.apk
B
5
S
2
G
3
Posts: 53
Reputation: 2,468

Post » Sat Sep 14, 2013 4:40 pm

what is the error @Kyatric
B
5
S
2
G
3
Posts: 53
Reputation: 2,468

Post » Sat Sep 14, 2013 6:00 pm

@jhonnel09: I'm not sure, but perhaps, event 2 adding an inverted condition "Audio: Is playing" with the correct tag could help.

New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
284
S
109
G
91
Posts: 7,317
Reputation: 87,483

Post » Sun Sep 15, 2013 1:19 am

posts your sample capx kyatric or screen shot
B
5
S
2
G
3
Posts: 53
Reputation: 2,468

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 6 guests