Create a loading animation while another layout is loading?

Get help using Construct 2

Post » Thu Dec 18, 2014 7:21 pm

When I pressed button "Start the game" in my game ,it takes about 2 seconds to load the next layout. In that 2 seconds, the screen is frozen. While another layout is loading, all animations are stopped.
How can I create a loading sprite running while another layout is loading ?
Please help... :?:
B
13
S
1
Posts: 98
Reputation: 885

Post » Thu Dec 18, 2014 8:44 pm

I have the same problem: how-do-i-get-rid-of-the-game-freezing-when-changing-layouts_t121126 But I also want to get rid of the freezing.

My short-term solution is the following:
If you click the play button (which directs you to a new layout), I display a loading image, then wait for 0.5sec (so the image has a chance to be displayed) and then call the 'go to layout' function.

Since the game is actually freezing the loading image can't be animated. But at least the player has some kind of feedback.
B
6
S
1
G
2
Posts: 21
Reputation: 1,351

Post » Fri Dec 19, 2014 7:13 pm

I tried to show "Loading..." text while waiting for Ashley to help us ...
B
13
S
1
Posts: 98
Reputation: 885


Post » Sat Dec 20, 2014 10:01 am

Lordshiva1948 wrote:try this tutorial
https://www.scirra.com/tutorials/533/fo ... ing-screen


Yes I considered that. But there are a few limitations with the loader layout, as mentioned in the tutorials.
"Loader layouts are not shown when publishing as native apps on mobile..."
" Loader layouts are only ever shown the very first time the game is being downloaded from the web..."
(source: https://www.scirra.com/tutorials/318/ho ... ng-screens)

Also: When switching to a layout that has quiet a lot to load, the engine freezes completely.
B
6
S
1
G
2
Posts: 21
Reputation: 1,351


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 7 guests