How do I optmize my game

Get help using Construct 2

Post » Fri Sep 12, 2014 4:42 pm

Hey guys, i don't know what i'm doing wrong, but my game is simple and i have a big lag on my android, my samsung galaxy tab, android 4.0.

I tried everything to optimize my game, the png images are with png-lossy 8.
I'm try put the link to download the project capx. Is a simple game, like flappy bird and have phases only

the code in next is the link to project capx
renatomateus.com/BirdsInDanger/BirdsInDanger.capx
B
5
S
1
Posts: 40
Reputation: 509

Post » Fri Sep 12, 2014 6:11 pm

You should check now:
- There are images that should not have collision enabled as they are wallpapers, such sprite 10,
- There are many collisions with objects such as sprite 3 and is not well defined,
- The code can be improved and much, using functions, etc...,
- CocoonJS store sandbox -> disabled,
- The draft Physics Engine -> Box 2d Web, not because the game using physical.
- ...
B
157
S
27
G
17
Posts: 912
Reputation: 32,607

Post » Fri Sep 12, 2014 6:38 pm

iceangel wrote:You should check now:
- There are images that should not have collision enabled as they are wallpapers, such sprite 10,
- There are many collisions with objects such as sprite 3 and is not well defined,
- The code can be improved and much, using functions, etc...,
- CocoonJS store sandbox -> disabled,
- The draft Physics Engine -> Box 2d Web, not because the game using physical.
- ...


iceangel, thanks so much for your answer! ;)

1 - I will Check the images
2 - How to define better the collisions? Sorry, i'm a newbie on Construct2
3 - The code can be improved and much, using functions, etc..., How can i get better my code? The Construct2 build her.
4 - The cocoonJS will be used to show ad banner and nothing more
5 - The draft Physics Engine -> Box 2d Web, not because the game using physical. What should i to do? What engine should i use?
B
5
S
1
Posts: 40
Reputation: 509

Post » Fri Sep 12, 2014 7:20 pm

you're welcome
1 - ...
2 - When a picture will not collide with 3 or 4 points maximum, and if an image by colliding vertices
3 - you should read your manual, you'll see if you modify some game and I sent it again - if I have time -
4 - CocoonJS store sandbox -> disabled, enable it for testing
5 - Do not using physics, and you do not use physics
B
157
S
27
G
17
Posts: 912
Reputation: 32,607

Post » Fri Sep 12, 2014 7:35 pm

iceangel wrote:you're welcome
1 - ...
2 - When a picture will not collide with 3 or 4 points maximum, and if an image by colliding vertices
3 - you should read your manual, you'll see if you modify some game and I sent it again - if I have time -
4 - CocoonJS store sandbox -> disabled, enable it for testing
5 - Do not using physics, and you do not use physics


2 - Yeah, i have to read the manual to see which collisions should i use
3 - Yeah, i'll read the manual
4 - Ok, i'll make a test
5 - but i have only 3 options: Box 2D Web, Box 2D asm.js, cocoonjs. Which of the options should i use?

Thanks
B
5
S
1
Posts: 40
Reputation: 509

Post » Fri Sep 12, 2014 7:40 pm

Box 2D Web
B
157
S
27
G
17
Posts: 912
Reputation: 32,607

Post » Fri Sep 12, 2014 7:45 pm

iceangel wrote:Box 2D Web


Perfect!
I'll make the change
Thanks so much iceangel

Just one more thing. After that change, i'll see the difference about performance on the my android?
Which type of export you think that should i use?
cocoonjs, phonegap, kongregate


Thanks again.
Good Weekend.
B
5
S
1
Posts: 40
Reputation: 509

Post » Fri Sep 12, 2014 7:46 pm

I leave the link to some images of your game and looking for collisions their properties, uses collision because it enabled the player and having nothing other contact is disabled.

Now https://dl.dropboxusercontent.com/u/218121929/PRUEBA/demo.zip

If you use mobile or tablet and yes/no advertising Cocoonjs or Intel Crosswalk
Kongregate from the mobile is slow.
Phonegap is slow.

Good Weekend.
Last edited by iceangel on Fri Sep 12, 2014 7:51 pm, edited 1 time in total.
B
157
S
27
G
17
Posts: 912
Reputation: 32,607

Post » Fri Sep 12, 2014 7:51 pm

Message: renatomateusx can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
iceangel wrote:I leave the link to some images of your game and looking for collisions their properties, uses collision because it enabled the player and having nothing other contact is disabled
https://dl.dropboxusercontent.com/u/218121929/PRUEBA/demo.zip

If you use mobile or tablet and yes/no advertising Cocoonjs or Intel Crosswalk
Kongregate from the mobile is slow
phonegap is slow

Good Weekend.



;)
B
5
S
1
Posts: 40
Reputation: 509

Post » Fri Sep 12, 2014 11:37 pm

iceangel wrote:You should check now:
- There are images that should not have collision enabled as they are wallpapers, such sprite 10,
- There are many collisions with objects such as sprite 3 and is not well defined,
- The code can be improved and much, using functions, etc...,
- CocoonJS store sandbox -> disabled,
- The draft Physics Engine -> Box 2d Web, not because the game using physical.
- ...



Hey iceangel.. I was checking for the image, like sprite 10 and she is the roof, so, when the bird to crash with the roof (sprite 10) she cannot to pass more than the roof, is like a limit...
I'm checking now the manual and look for the best way to make a collision
B
5
S
1
Posts: 40
Reputation: 509

Next

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 9 guests