Wai's Recent Forum Activity

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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Is there any tutorial on how to do that using construct 3? Thanks.

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

  • Is there a tutorial on how to do this in construct 3 using the GooglePlay and GameCenter objects? All the tutorials I found used some 3rd party plugin. Any help on this would be greatly appreciated. Thanks in advance.

  • Thanks for the reply. I will try along that line and bump the thread again if I cannot figure out.

    Is it possible in Construct 3?

    e.g. The object is a circle, the user tap on the circle and then draw an "S" shape without lifting his finger. The circle will then move according to the S path drawn.

    Any help would be appreciated. Thanks in advance.

Wai's avatar

Wai

Member since 4 Jun, 2014

None one is following Wai yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies