How do I check if a sound is loaded?

Get help using Construct 2

Post » Thu Sep 17, 2015 3:00 pm

Is there a way of checking if a sound is loaded? I want sounds to load inside the game and create a counter that shows the progress while they load up

At the moment I've got a loop that loads them all but if I try to display the number of sounds loaded, it goes straight to 100% while the sounds load up in the background.
B
6
S
1
Posts: 50
Reputation: 500

Post » Thu Sep 17, 2015 3:09 pm

Hi @shortwave

You can use the condition: (if) Preloads complete. Look for this option in the 'Audio' object conditions.
B
74
S
13
G
4
Posts: 1,005
Reputation: 8,058

Post » Thu Sep 17, 2015 3:23 pm

Thank you, just trying it out now. Do you know if there is any way I can use that to tell me how many of the sounds are loaded or if a specific file has loaded? It's just that I'd like to make it show the percentage of how many are loaded...
B
6
S
1
Posts: 50
Reputation: 500


Return to How do I....?

Who is online

Users browsing this forum: dand and 26 guests