How do I Fix music lag. Starts playing after minute

Get help using Construct 2

Post » Sun Nov 16, 2014 8:12 am

Hi, when i export my game to html5, upload it to dropbox and start playing the game, it takes more than 1 minute for the music to start playing. I have set preload sounds. What the problem could be? thanks

https://dl.dropboxusercontent.com/u/84146142/Webgame5/index.html
Last edited by ex32 on Sun Nov 16, 2014 9:24 am, edited 1 time in total.
B
11
S
3
G
1
Posts: 418
Reputation: 1,780

Post » Sun Nov 16, 2014 8:27 am

I tried it and it started playing the music right away for me.

Preload sounds doesn't work with music, it states so in the description. Music is streamed, meaning that is being downloaded as it plays.
You could always try to move the sounds from the music folder into the sounds folder inside C2 and that should preload it correctly but it would increase the game loading time.

https://www.scirra.com/manual/141/files
B
72
S
27
G
17
Posts: 254
Reputation: 14,971

Post » Sun Nov 16, 2014 8:35 am

Thank you i will try it, it is better to wait a bit longer , than play a game without music yeah
B
11
S
3
G
1
Posts: 418
Reputation: 1,780

Post » Sun Nov 16, 2014 8:41 am

It is working now, thank you very much Xavier.
B
11
S
3
G
1
Posts: 418
Reputation: 1,780

Post » Sun Nov 16, 2014 8:56 am

You're welcome.
B
72
S
27
G
17
Posts: 254
Reputation: 14,971


Return to How do I....?

Who is online

Users browsing this forum: blackhornet, mrkaio, muquia, tarek2 and 2 guests