ghale's Forum Posts

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

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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • superkew

    I'll wait for it!

    Thanks!

  • superkew

    No, it not works <img src="smileys/smiley19.gif" border="0" align="middle" />

    I've done this istructions:

    <img src="http://i49.tinypic.com/2e3aipw.jpg" border="0" />

    On browser is ok, but on Android the 2 right icons (Voce and btnAvanti) don't touch the right edge of the screen but are a bit more on the left as can you see on this (ugly) image:

    <img src="http://i50.tinypic.com/16iurz6.jpg" border="0" />

    Any help, please?

  • But ScreenWidth and ScreenHeight in your example are global variables and not built-in functions, true???

  • superkew

    Hello, I'll try soon!!!

    Regards,

    ghale

  • I've written to CocoonJS, I hope they reply...

    I need a solution, I've invested some money in my project and I can't stop it for alignment issues!

  • Ok, I've tried with anchor behavior.

    On PC, all is ok.

    But with CocoonJS and Android, I see the buttons that are not aligned and a flicker effect when I change Layout.

    HTML Example (working good): bit.ly/X6KcLu

    APK for Android signed with debug key(not working good): bit.ly/13bdEnq

    ZipFile for use with CocoonJS Launcher on Android: bit.ly/XUyT7J