kimtaein1's Recent Forum Activity

  • nvm, i still have the problem when i switch app. see related topic

  • did you find solution to your problem?

  • i add 'preload completed' event and within action section, i add 'wait a second' and then after that play game start sound.

    It appears that in iphone, you have to wait until preload is completed and also give it some time otherwise the sound behaves odd

  • Is there an event before "On load layout" that i can use to pre-load objects that take a lot of resource?

    I am using AdMob and during loading ad, the game is very slow and doing dt trick doesn't help (the game still lags and there are times when the screen just freezes).

    Because this only happens during ad load, if i could say

    • (in some event) load ad
    • tell construct that it is ready and it should trigger On Load Layout

    if there is no such thing, i will have to add a global variable and all conditions will have to check for it before doing things, but i think there has to be some event beore "On Load Layout" and i just don't know about it.

    thanks

  • i am having the same issue. Without admob loading ad, my game runs at 50fps consistently. When ad loads, it runs between 30~40 fps.

    any optimizations i can do?

  • fixed this by waiting until preload completed event

  • Hi, i am creating ios and android game. Inside the game, i would like to show how i am doing compare to other friends in facebook.

    I imagine i would also need a mechanism for logging onto facebook, get permission through oauth...

    I read https://www.scirra.com/forum/viewtopic.php?f=147&t=129460&p=910820&hilit=facebook+friend#p910820 and it seems like Ribis didn't post his stuff on store.

    Is there plugin or example i can use?

    Thanks

  • anyone?

  • I imported sound effects to sound folder (tried both the highest and lowest quality import) in my construct 2 game.

    it plays nicely on my pc. when i export as cordova, and use phonegap or intel xdk and install on my iphone 6, the sound quality drops significantly. It is as if the sound is distorted.

    What am i doing wrong? The fact that this is happening in both phonegap and xdk says the issue is not with build service but sound files in media folder of cordova export folder are fine when played on my pc.

  • thank you both. the reason i wasn't using cocoon is because https://www.scirra.com/tutorials/303/how-to-export-to-cocoonjs says "Note: when exporting for Android, we recommend using Crosswalk instead since it has better compatibility with Construct 2 games. For more information see How to export to Android with Crosswalk. We also recommend publishing via Cordova for iOS." so it sounds like Scirra want us to use phonegap for ios and crosswalk for android.

    Am i going to have trouble if i use cocoon?

    thanks

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • i used debugger profile and see

    Engine: 58%

    Draw calls: 14%

    Event: 8%

    I understand draw call and events, but what does engine mean?

  • Thanks, my game setup is like this:

    there are prisoners inside a circle. The circle is made up of rocks.

    In the game there are about 100 prisoners and about 240 rocks making up the wall.

    Prisoner has animation: 6 frame, 100x100 pixels each.

    Rock does not have any animation and 44x44 pixels.

    Rock has solid behavior and prisoner has bullet behavior so they constantly move inside the prison but bounce off when they hit the wall. It is crucial that i have about 100 prisoners.

    i tried just using 4 large long rocks for walls, reducing instance count by 240 but the game was still very slow.

    I think the issue is expotential growth of collision check as # of instances grow in the game. I am not sure how i can optimize this. I am using box collider. All my prisoners are in one layer and rocks are in another layer so if i could somehow skip collision check between prisoners and only detect collision between prisoner and wall, i think i can make it faster.

    On my android test device, Galaxy S4, i get about 20 fps and on my iphone, i get about 50 fps.

    I tried phonegap and inel xdk and verified that WebGL is being used.

    Thanks

kimtaein1's avatar

kimtaein1

Member since 4 Oct, 2015

None one is following kimtaein1 yet!

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies