Game lagging after destroy action also

Get help using Construct 2

Post » Tue May 26, 2015 1:17 pm

Hi guys,

Am working on a project something like a "happy fall".
Am in the middle of the project but i dont think i should go ahead without solving the lag in my game.

The game freeze or kind a lag when platform goes up.when platforms are out of layout am destroying by viewport so it should not lag but still am facing the issue on browser and also after compiling a apk with cocoonjs.

I tested the apk on Galaxy S3 and its hard to play coz the game get start lagging after few seconds.

Here is the capx
dropbox.com/s/0kr7p3iau5e4x9f/fall-game.capx?dl=0

here is the apk compiled with cocoonjs
dropbox.com/s/pz36nkcsjgf8rk8/fall-game.apk?dl=0

Anyone have solution for it?? am i doing something wrong?
B
6
S
1
Posts: 52
Reputation: 500

Post » Tue May 26, 2015 1:25 pm

When running your game in debug-mode, you see the amount of platforms increase and increase dramatically..
So yes, something is going wrong..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue May 26, 2015 1:38 pm

This takes care of the first issue

your coins are still an issue though..
Multiple are created instead of 1..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue May 26, 2015 2:08 pm

@littlestain
thanks for the reply

the first capx sent by you...i was working on that one....
i might have done something wrong...

basically i found the problem why its was counting so many objects..

Actually the first file that u uploaded...the platforms was down but i wanted the platforms to go up so i changed


Image

to

Image

thats where the problem occured i think

but in new capx by you its fine...thanks a lot

the problem of coins could be coz its spawning through PlatformP?

i think i should compile again to check apk should not lag tht much now
B
6
S
1
Posts: 52
Reputation: 500

Post » Wed May 27, 2015 8:25 am

@littlestain

yeah its working fine
thnx a ton!
B
6
S
1
Posts: 52
Reputation: 500


Return to How do I....?

Who is online

Users browsing this forum: John Cutter and 9 guests