how does loadingprogress work ?

Discussion and feedback on Construct 2

Post » Fri Nov 15, 2013 11:21 pm

Hello,

I am quite confused. When I use loadingprogress along with a custom loading screen (using scirra.com/tutorials/533/for-beginners-custom-loading-screen), the progress bar resets from 100% to 25% then increases again. Does it mean that the first time sprites are loaded then the audio ? Or is it something else ?

For instance, it happens with this game:
dl.dropboxusercontent.com/u/22937829/L27/index.html

Thanks

EDIT: I also read scirra.com/tutorials/318/how-to-use-loader-layouts-to-make-custom-loading-screens written by Ashley. He says it is related to "Is downloading update" but I don't understand.Nemega2013-11-16 00:13:34
B
5
S
1
G
1
Posts: 24
Reputation: 538

Post » Sat Nov 16, 2013 1:47 pm

That's odd, I've not noticed that effect before. I think Chrome is noticing there's an offline cache and the loading progress is reflecting the offline cache progress - but it's not programmed to do that... hmm...
Scirra Founder
B
387
S
230
G
88
Posts: 24,251
Reputation: 192,464

Post » Sat Nov 16, 2013 2:13 pm

@Ashley

recently I got same effect on CocoonJS Android compilation too,
but for me it does not matter anyway :)
B
18
S
6
G
1
Posts: 783
Reputation: 4,187

Post » Sat Nov 16, 2013 2:43 pm

Thank you for your answers.
What is odd is that it happens even if it is the first time you open the game so there is no offline cache yet, right ?

Well I had time to investigate this issue. It seems that it only happens if there is the Browser object in your project. Since the game is playable after the first bar completion, I assume the second one is for sounds/music. Or maybe because of the Browser object, it is trying to reach an update. These are just assumptions and it does not bother me that much too but I was just curious if there is an explanation to it.Nemega2013-11-16 14:47:32
B
5
S
1
G
1
Posts: 24
Reputation: 538


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 2 guests