How do I optmize my game

0 favourites
  • 11 posts
From the Asset Store
Easily generate many levels from a set of pre-built scenes (Construct 3 template)
  • 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

  • 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.
    • ...
  • 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?

  • 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

  • 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

  • Box 2D Web

  • 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.

  • 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.

  • 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.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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

  • You can put a small object that is invisible to the collision enabled, it is easier

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)