Wai's Forum Posts

  • Thanks. Does that mean "Repeat" is better than "For"?

  • Say I want to calculate the value of a function f(x) for values 1 to 10000. I can easily use a FOR loop for that, but that appears to be very slow. Is there a way to do it more efficiently? Thanks for any suggestions.

  • I cannot either. Hopefully they can fix this soon.

  • I am having a very simple game (for the purpose of discussion, let's say it is flappy bird) that uses mobile advert to run admob ads. Everything is from construct 3 and build using xcode without any additional plugin/coding. I am wondering what my answers to the 3 questions should be.

    1. Is your app designed to use cryptography or does it contain or incorporate cryptography? (Select Yes even if your app is only utilizing the encryption available in iOS or macOS.)

    2. Does your app contain, display, or access third-party content?

    3. Does this app use the Advertising Identifier (IDFA)?

    I am only sure about 2, anybody who has published on app store know what I should check for 1 and 3? Thanks.

  • Thanks for the reply. I followed the instruction and can now submit my app to app store

  • I have exported my C3 project as Xcode, and can test it on my device (the sound is not working, not sure if it is normal). What is the next step for publishing the app? I remember several years ago after I build my xcode project it will prompt me to upload to my itunes connect but I forgot the setting. Can anyone who publish to APP store please give me some help, such as what are the settings of Xcode I should change? Do I build, build for running/profiling or archive?

    I am struggling with creating profiles, certificates and signing a lot. Any example or tutorial will help a lot. Thanks.

  • Hmm, I guess my question is more like if the BULLET behavior is draining a lot of battery. As I said in my previous post, the app is very simple and for test purpose only:

    1. You create some solid boundary on the 4 sides of the layout

    2. You create several sprites (say 4) with bullet behavior and bounce off solid

    No event at all. So there is nothing to optimize.

    Build the android app and let it run (so the sprites will be bouncing around) for 3 minutes, and the CPU total will be ~7 minutes on my Nexus 6.

    Not sure if it will be the same on other phones. Thanks.

  • Yes, I already read that. There is no performance problem. The problem is that app is draining a lot of battery.

  • I tried to build the following simple android app using Construct 3 and it is draining too much battery. The app consists of the following:

    4 sprites that used as boundaries of the layout, with property solid

    4 sprites with bullet behavior and bounce on solid

    I did not add any event. So essentially you will see the bullet bouncing back and forth.

    I let the app run for 3 minutes and it is using almost 7 minutes of CPU total. Is there anything I can do to reduce the power consumption? Thanks

  • Thanks for the prompt reply.

    Yes, I am using jdk9 and hopefully I can sign my apk once I go back to jdk1.8.0_152. Thanks again.

  • I generate an unsigned released apk, follow this Ashley's tutorial ( https://www.construct.net/tutorials/bui ... truct-3-19 ) and successfully generate the key and align the apk.

    However, when I try to sign the apk, using the following

    C:\Users\Wai\AppData\Local\Android\sdk\build-tools\27.0.1\apksigner sign --ks release-key.jks --out signed.apk aligned.apk

    I got the error:

    -Djava.ext.dirs=C:\Users\Wai\AppData\Local\Android\Sdk\build-tools\27.0.1\lib is not supported. Use -classpath instead

    Error: Could not create the Java Virtual Machine.

    Error: A fatal exception has occurred. Program will exit.

    Anyone encounter the same error? What should I do? Thanks in advance.

  • I have a lot of points, say (x_1,y_1), (x_2,y_2), ... up to (x_n,y_n). The task is to draw straight lines between each (x_k,y_k) and (x_k+1,y_k+1), each very close to each other.

    I am wondering if the two approach are equally efficient:

    1. Using sprite. Say I have a black sprite. I will just set each sprite having width distance(x_k,y_k,x_k+1,y_k+1) and angle(x_k,y_k,x_k+1,y_k+1) and height say 5.

    2. Using tiled background. Say I have a black tiled background. I will just set each tiled background having width distance(x_k,y_k,x_k+1,y_k+1) and angle(x_k,y_k,x_k+1,y_k+1) and height say 5.

    The two set sizes seem to be doing different things. The sprite set size is like scaling the sprite, while the tiled background set size is like cutting part of the tiled background (and pasting if the size is large). I am wondering if one of them is more efficient.

    Any insight will be appreciated. Thanks.

  • Is there any tutorial on how to do that using construct 3? Thanks.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Strange indeed. When I use my Mac and do double tap using the track pad, it works fine. But when I use my laptop with a touch screen to test, it is not working properly. Did you test on a touch screen?

  • I try doing something very simple like this:

    On double tap gesture --> Add 1 to Counter

    And it appears that every time I tap, the counter will increase. Did I do something wrong? How can I get the double tap to work? Thanks.