How do I get feedback on Sprite images being loaded?

Get help using Construct 2

Post » Fri Feb 19, 2016 1:42 am

So, our live client is around 120Mb of images and data being loaded between the various layouts.

In the HTML5 published version, we have run into issues with C2 loading the page completely the first time a user visits the game client page. Is there a property or something that will give me feedback on the status of the images being downloaded, so that I can display a message to the user to wait (or tell if it has failed client-side)?
https://www.ravenheart.ca/home
Company name changed to avoid Facebook-type shenanigans

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,317
Reputation: 4,628

Post » Fri Feb 19, 2016 1:49 am

Try this - https://www.scirra.com/tutorials/318/ho ... ng-screens

Although... doesn't C2 already have a loading bar by default? Or maybe that was an older version
Mistakes were made.
B
47
S
23
G
100
Posts: 1,521
Reputation: 56,533

Post » Sat Feb 20, 2016 3:56 pm

Yea, we already do that. But the problem is that Construct stalls the ability to go to other layouts until all of the images are loaded, which takes a while for our client, and occasionally dies mid-load.
https://www.ravenheart.ca/home
Company name changed to avoid Facebook-type shenanigans

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,317
Reputation: 4,628

Post » Sat Feb 20, 2016 6:44 pm

So main problem is loading time between layouts?

https://www.scirra.com/tutorials/328/us ... onstruct-2

I think you can use load image from URL to make custom progress.

So instead of having all the images already placed in the next layout, use placeholder spirits so the layout loads and starts quickly, then load in images with events so you can provide feedback as they load.

You can use a variable to add to after each image gets loaded.
Mistakes were made.
B
47
S
23
G
100
Posts: 1,521
Reputation: 56,533

Post » Mon Feb 22, 2016 6:11 pm

Well, the loader layout (Galaxy View) loads, but the user cannot move to another layout until all of the images from all other layouts load. And the loader layout will periodically fail to load altogether.

Mostly, what I am looking for is if Construct2 has an AJAX response API that gives me feedback on whether the images are still being loaded, or whether there has been an internet interruption on the user side in order to give appropriate feedback to the user.

For example, if you open our website, the "loader layout" is the main page, and we have several large images on other layouts (namely race creation), you cannot click on any of the other buttons until ALL of the other layouts load all of the images. It would be nice to have a little text that says: "Loading images..." or something until all of those other images are loaded, or have an error if the image loading stops.
https://www.ravenheart.ca/home
Company name changed to avoid Facebook-type shenanigans

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,317
Reputation: 4,628


Return to How do I....?

Who is online

Users browsing this forum: Magistross, OddConfection, RetroSpock, senna68, smlyldz, wmsgva and 8 guests

cron