ghale's Recent Forum Activity

  • Hello friend, the fast solution I've tried is to paint things on screen soon after the screen is displayed.

    Yes, it's not a nice solution, but it works on every device I've tested.

    I've added a fade effect so I've beautified it.

    I hope this helps.

  • Thank you Wink

  • Wink

    Can you try to compile by yourself all starting from the capx?

    So I can know if is related to my account or not.

    I believe that is related to CocoonJS in general, because they have a cloud compiler.

    Can you tell me the result, please, and make public the resulting APK?

    Thanks,

    ghale

  • Hello superkew,

    I've done in a similar way, but I've painted the elements on the screen with a fade.

    Can you please give us a capx, please, so I can see how to accomplish this?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yes, both of them.

    Regards,

    ghale.

  • Hello Wink,

    thanks for your help.

    I've tried several ways and I've noticed that on CocoonJS (on Launcher or with a compiled APK) if you call a Layout B from another Layout A and on Layout B you dinamically position elements, the ViewportTop, ViewportBottom, ViewportLeft, ViewportRight at layout start don't report the correct values.

    If you put an element and associate to it a reposition of the elements to the 4 edges of the screen (the same procedure at the start of layout), you can see that the items are correctly positioned.

    So the problem is at start of layout ONLY, after the screen has been painted, all works good.

    I've tried with: Galaxy SII, Nexus 7, Kindle Fire HD.

    I've tried using and not using anchors.

    I've written at Ludei but I've don't received a reply (I think they are at Mobile World Congress right now).

    I've solved painting items after 0.05 seconds (with Trigger Once function) and they are correctly painted on screen. I've beautified all using a fade effect.

    Generally speaking, with CocoonJS on Android if you put something (i.e.) on the center of the screen, the item is not centered but aligned on the left. The same issue I've noticed with AppMobi (now Intel SDK). If I put the same item on the screen AFTER the layout has been loaded and displayed, the item IS CENTERED.

    This is the sample capx I've used.

    When I run it, I see:

    <img src="http://i48.tinypic.com/34fh4sl.png" border="0" />

    After I force the repositioning on the screen clicking the text, I see this:

    <img src="http://i46.tinypic.com/ix8gwh.png" border="0" />

    Here you can download the APK: bit.ly/XmgErZ

    Here you can download the .capx: bit.ly/ZLsfoC

  • Wink

    I'm using it on Samsung Galaxy S II.

    On it, the squares are not aligned correctly.

    I've attached a image of what I see in a previous post.

    I don't know what to say and what to do.

    BTW, thanks.

  • Wink

    Maybe I've not been clear.

    There is a problem on CocoonJS aligning items at first start of application.

    Please run it on CocconJS on Android and tell me if all is correct.

    I've just tried your example and it not works correctly on Android (obviously yes on PC).

  • Wink

    Hello Wink,

    maybe the file is corrupted, because I can see 1 Layout, and an empty Event Sheet!

  • Wink

    Hello Wink,

    can you put it the capx in r119?

    I don't use the beta r120!

  • silkc2

    Yes, it's true.

    I'm trying different solution to find out the correct one.

    If anyone has a solution, please help!

  • superkew

    Hello superkew,

    thank you very much for your help.

    It works very good.

    I'm trying to see if there is a way, when I change the Layout, to let this images not be "shifted" on the right when the layer is shown.

    This is a ugly effect on Android.

    I can post a capx to show you the problem, if anyone interested...

ghale's avatar

ghale

Member since 6 Feb, 2013

None one is following ghale yet!

Connect with ghale

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies