How do I get rid of the game freezing when changing layouts

Get help using Construct 2

Post » Wed Dec 17, 2014 1:09 pm

Hi,

I hope this wasn't posted before. Google didn't find me anything useful, at least.

My problem is that construct freezes for a couple of seconds when I am clicking the play button in my main menu and then change to the first level of the game. (I'm using 'go to layout')
The level consists out of ca. 55 objects (sprites, tiled backgrounds, texts), some of the sprites have animations. I'm running r190.

Is there any way to remove that freeze? I tried putting every object into my main menu layout, hoping that construct would then cache them and the 'go to layout' wouldn't freeze any more. But no luck so far.

I also tried to show a spinning cirlce, but since the game is really freezing, the circle also freezes. :/

Any ideas on that?
Is there something like 'switch to layout when layout is loaded'?

Cheers,
spinz89
B
6
S
1
G
2
Posts: 21
Reputation: 1,351

Post » Tue Dec 23, 2014 5:39 pm

Push :)
B
6
S
1
G
2
Posts: 21
Reputation: 1,351

Post » Tue Dec 23, 2014 5:45 pm

There's really no way to know without seeing a capx
B
60
S
20
G
56
Posts: 1,077
Reputation: 35,941

Post » Wed Dec 24, 2014 11:41 am

You got a point there. But unfortunately I'm not allowed to publish the capx.
I'm afraid that one can't change anything about it anyway..
The more objects that have to be loaded, when changing a layout, the longer the engine freezes. I guess it's just how it is.
B
6
S
1
G
2
Posts: 21
Reputation: 1,351

Post » Wed Dec 24, 2014 3:22 pm

put an image on the screen before go to another layout :D
such loading image

when press button - image set visible - wait 1s - go to layout2
B
6
S
1
Posts: 24
Reputation: 448


Return to How do I....?

Who is online

Users browsing this forum: varr and 3 guests