Audio preloading

Get help using Construct 2

Post » Wed Jun 14, 2017 3:44 pm

Message: Hex27 can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Hello, I've uploaded my game to a server for a competition (https://goo.gl/DGGwOh), but the audio doesn't load properly. I've used the preload method on the start of the first layout, but the audio still isn't working when it is needed in the 3rd layout, and there's this really long period of silence (maybe a minute or more) before the audio begins working as normal. This only happens when it's uploaded to the server, and not when testing with the construct 2 program. How can I solve this?
B
4
Posts: 15
Reputation: 228

Post » Wed Jun 14, 2017 5:35 pm

The server just looks like it's really slow. I loaded the page watching Chrome's network tab and one request took over 30 seconds.
Scirra Founder
B
387
S
230
G
87
Posts: 24,249
Reputation: 192,240

Post » Wed Jun 14, 2017 5:36 pm

Lol so nothing I can fix on my side?
B
4
Posts: 15
Reputation: 228

Post » Wed Jun 14, 2017 9:17 pm

Try uploading the game on another server. You can find lots of free hosting service where you can put your game for testing purposes or for beta testing.
Like my work? Fallow me on social media, and see my games on the arcade.
B
7
S
5
G
9
Posts: 298
Reputation: 5,357

Post » Thu Jun 15, 2017 8:06 am

In the end it's still gonna be on that server for the competition though...
B
4
Posts: 15
Reputation: 228

Post » Thu Jun 15, 2017 8:27 am

I want to add that what is in your control is:

1) Controlling the size of your audio files (naturally if you add a huge audio it will take longer to download).

2) Consider cutting a longer background music audio into half or smaller piece.

3) Consider abandoning the specific music you like and go find another which is much smaller size.

4) Use various tricks to keep the player busy while the audio is loading, such as:
>> Start by showing various game controls
>> Have a couple of pictures of story. Even 1-2 seconds that the player looks at the story and clicks NEXT adds up to 10 seconds for 3-5 story pics.
>> Have some settings page giving the player a choice to set volumes or pick colors or whatever. Could be any not-so-important stuff just to buy some seconds for loading.

Good luck.
Thank you to Construct 2 for giving me the ability to create games without programming knowledge.

My games & gaming portal = DolyGames

If anyone wants to cooperate to help each other Win-Win please email me - I am always happy to discover new opportunities.

Cheers,

COSMOS
B
20
S
9
G
1
Posts: 75
Reputation: 2,152

Post » Thu Jun 15, 2017 9:48 am

Thanks for the advice. I guess I'll just lengthen the beginning cinematic...
B
4
Posts: 15
Reputation: 228

Post » Thu Jun 15, 2017 10:07 am

Ya, I would swap out the chase.ogg music for something smaller. As well as the logo2 file for something smaller as well. That is what is causing a long load time at the beginning for first-time loaders.
Image
B
45
S
17
G
2
Posts: 201
Reputation: 4,471


Return to How do I....?

Who is online

Users browsing this forum: el3um4s, imothep85, Ryan Kocourek, TheSupreme, TylerJS and 8 guests