music not looping when published in FF and Chrome

Get help using Construct 2

Post » Wed Feb 01, 2017 2:23 pm

Spacedoubt, you saved my day!
It is not a Chrome issue only since the same happens in FF and Edge. But putting the music files in the sound folder does correct the not looping issue.

I make several educational games a week and just started to use C2 and this was a major issue because we are following department of education guidelines and we need the music background to loop!

THANK YOU!!!!
B
8
S
1
Posts: 86
Reputation: 618

Post » Wed Feb 01, 2017 3:27 pm

Now that I looked into this music problem, since the music is streaming when put in the music folder, would it be correct to use:

Code: Select all
audio | on tag "bgMusic" ended ||  audio | play music looping at volume 0 db (tag "bgMusic")


I think it might mimik the javascript equivalent:

Code: Select all
myAudio = new Audio('someSound.ogg');
myAudio.addEventListener('ended', function() {
    this.currentTime = 0;
    this.play();
}, false);
myAudio.play();

B
8
S
1
Posts: 86
Reputation: 618

Previous

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 25 guests