Wai's Forum Posts

  • For example, the sum of all digits of 123 is 1+2+3=6, 4510 is 4+5+1+0=10.

    Is there any built in expression that can do that? If not, what is the standard way other than a for loop to do that? Thanks.

  • I have developed most of the game logics in C3, only to find out that I need a plugin that is only available in C2. Is there any easy way to convert that C3 file into C2? If not, I may need to rewrite every event in C2... Thanks.

  • I would like to know if anyone has experience adding conversion tracking to C2 created game compiled using Cocoon IO. PM me if you know how to do that and we can discuss the compensation. Thanks.

  • I just tried cocoon 5 minutes ago and it worked. I did something really simple:

    On start of layout --> Request login

    You have to enable Google Play Games in "SOCIAL" under "SERVICES", enter your APP ID (which means you have to set that up in Google Play first) before compiling your app. If you did everything and still can't get it to work, file a bug with the details to Cocoon.

  • Try to follow this tutorial.

    https://www.construct.net/tutorials/bui ... truct-3-19

  • I want to build my app using Cocoon IO and use some of the plugins, but I cannot figure out how to add those plugins to C3. Is it through the addon manager? Where can I find the Cocoon addon files for C3? Thanks.

  • AndreasR

    Do you use C2 for your game? Have you had any luck using C3 and Cocoon IO?

  • I tried to build apk using Android Studio and PhoneGap, and same result. Maybe it is a Cordova thing?

    But that would make remote preview's usefulness decreases a lot, as the performance can differ so much.

    Update:

    If I compile using Cocoon IO with Webview+, the movement is smooth, same as viewing in browser on phone. Is there any way I can still use C3 build and get that smooth movement? I really don't want to use other 3rd party service to minimize the chance of getting other problems. Thanks.

  • Rasputin

    I am not sure if I understand you correctly. I tried to resize my image to 100x100 before importing to C3, and then set it back to size 250x250 in game, the movement is still a bit "jumpy".

    My main question is why the sprites can move smoothly in remote preview on phone, but when running on mobile app, the movement becomes jerky.

  • I would assume if you try it on browser version, it would be all smooth then.

    I can see a clear difference in the smoothness of movement between browser version and mobile app version (nearly all movements in mobile app version are jerky, while the browser version is all smooth), which should not be the case. Maybe your phone has very good spec and it hides the problem, but there is a problem there if there is a noticeable difference between browser version and mobile app version.

  • Thanks for your help. I have also tried to export to Android Studio and build an apk there and still get jerky movement. Would greatly appreciate if you could find out a solution for this. Thanks again!

  • Thanks for your feedback. What device are you using?

    I tried on Nexus 6 running Android 7.1 and Samsung Note 4 running Android 5.0, objects in the mobile version move not smoothly on both phones but the browser version is smooth. I let the program run for a minute and still no improvement.

    Maybe flickering is a strong word, but if you look carefully, you should see the objects in mobile version have rough movement (maybe sometimes move back a pixel or so? not sure what's the cause of that rough movement feeling), but the browser version has very smooth movement, even though both are running at near 60fps.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks for your reply.

    I know that bullet already use delta time. What I want to say is it doesn't make any difference whether I use bullet, or try to set the position of object by using delta time (of course not implementing both at the same time). And the problem of jaggy movement only happens when export as a mobile app, it runs very smoothly on the browser in remote preview.

    So you did not experience any jaggy movement when exported as a mobile app? Is there any app you have published that I can download to try?

    I made a simple example that clearly demonstrate the difference in the smoothness of movement between remote preview in browser and exported as mobile app.

    https://drive.google.com/file/d/1Yo5NJR ... sp=sharing

    https://drive.google.com/file/d/1sx4kr- ... sp=sharing

    Ashley

    What is your view on this? As you are a strong advocate in remote preview, there must be something wrong if their performance (not in fps, but the smoothness of movement) differ so much.

  • I try to use the bullet behavior, which does the job well on a browser and when in remote preview. But when I export the project to Android, the movement becomes jaggy. The fps remains at 59-60 but the movement is just very rough.

    You can try to reproduce it by having two sprites, each 250x250, and set bullet speed to 400. It doesn't matter whether the bullet speed is large or small and the browser can have smooth movement, only when it is exported as a mobile app the movement becomes jaggy. I also tried to update the position by using every tick, update Object.Y to Object.Y + speed*dt, but same result (smooth when viewing in browser but jaggy when exported as mobile app). Any ideas on what's happening and how to solve this?

    I found this thread on Unity and am not sure if it is related. Any help would be appreciated. Thanks.

    https://answers.unity.com/questions/599 ... ty-43.html

  • I tried it with a very simple program that several sprites of size around 250*250, have bullet behavior that moves at speed 1000, gets 60 fps and pretty smooth movement on browser. But once I export it as an android app using the Construct 3 built, still get 60 fps but the objects now "flicker" (not sure if it is the correct word, but the movement is a bit choppy) when moving, even when the bullet speed is set to something small like 400. Anyone has similar problems before and a solution to fix that?

    I found this thread on Unity and am not sure if it is related. Any help would be appreciated. Thanks.

    https://answers.unity.com/questions/599 ... ty-43.html