Audio not firing

Discussion and feedback on Construct 2

Post » Fri Jun 13, 2014 4:49 am

This seems like a bug, but I can't be sure as I've never used the Drag Drop behavior before.

I have a sound playing for when you drag&drop successfully into a box and a different sound for when you miss the target. Both sounds play the first time through. If you continue drag and dropping then only 1 sound plays (and it varies which sound). I tried it in Chrome and in Firefox, same results.

The fact that it varies makes me feel its the code... I'm probably overlooking something, but I can't see it.

Can someone take a look?
You do not have the required permissions to view the files attached to this post.
B
98
S
32
G
16
Posts: 1,204
Reputation: 16,715

Post » Fri Jun 13, 2014 4:58 am

I get the same problem,
play --> stop-->play then the music doesn't play on start
loop mode is disabled too~
B
37
S
11
G
1
Posts: 80
Reputation: 3,325

Post » Fri Jun 13, 2014 3:01 pm

It's not the code. I've tested it on the following browsers and got different results:

On Firefox it plays just fine, every time.
On IE (11) it also plays fine, every time.
On Chrome, half of the time it plays fine (literally, if I refresh the page, every second time it doesn't work)
On Node-webkit it never works.

I simplified the code, just leaving 1 box, and still it doesn't work as it should. This is probably a bug either on C2's behalf, or Chrome (and on the chrome based node-webkit).
composer - multimedia artist
www.eli0s.com/en/
B
69
S
27
G
6
Posts: 1,146
Reputation: 10,379

Post » Fri Jun 13, 2014 6:27 pm

thanks @eli0s and @winsonzhong It most likely is a Chrome problem. I retested with Firefox and you're correct it works fine.. not sure what was happening before..I was getting some unexpected results when at fullscreen in Firefox (it sometimes acts as if frozen, the screen won't redraw, then all of a sudden it does)...but that I think is unrelated to this. I don't think a Scirra bug report will help as it's probably something Google has to take care of.
B
98
S
32
G
16
Posts: 1,204
Reputation: 16,715

Post » Fri Jun 13, 2014 7:23 pm

SOLVED...

I had the sound effect audio imported into the Music Directory... I guess it doesn't refresh as fast which makes sense since music plays longer than SFX..
B
98
S
32
G
16
Posts: 1,204
Reputation: 16,715

Post » Fri Jun 13, 2014 7:24 pm

I knew it was something stupid!

suddenly, my world makes sense again..
B
98
S
32
G
16
Posts: 1,204
Reputation: 16,715

Post » Fri Jun 13, 2014 7:27 pm

Then the problem should arise from the fact that music files can't be player simultaneously. Weird that on some browsers it works though...
composer - multimedia artist
www.eli0s.com/en/
B
69
S
27
G
6
Posts: 1,146
Reputation: 10,379

Post » Fri Jun 13, 2014 7:55 pm

you can play music simultaneously.. see this thread: viewtopic.php?f=146&t=98383

I think the Music Folder must have something to do with how often it can be triggered... I'm not really sure, but all I know is it works now and I never have any issues triggering music.
B
98
S
32
G
16
Posts: 1,204
Reputation: 16,715

Post » Sat Jun 14, 2014 4:36 am

firefox plays just fine. node webkit never work, but r170 all is find . the problem appears only at r171 r172
B
37
S
11
G
1
Posts: 80
Reputation: 3,325

Post » Sat Jun 14, 2014 10:24 am

@jobel , my bad, I was positive that limitation existed. Apparently it doesn't! By the way, have you tried playing your capx on the post you directed me on Chrome now? The same thing happens. I think since you are the OP you should report this to Ashley. It might be something from his end, but even if it's not, as a developer (and a genius) he should be able to pinpoint the problem and push it to Chrome devs...
composer - multimedia artist
www.eli0s.com/en/
B
69
S
27
G
6
Posts: 1,146
Reputation: 10,379

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 11 guests