zdtpku's Forum Posts

  • 7 posts
  • Hi, Ashley:

    I tried the R88 Version,You have done a great job.

    It almost OK to use touch/accelerometer input,but the frequency does't work. So it keeps the default interval in phonegap (10 seconds).

    If I use Uncompressed script, it's OK.

    This issue maybe caused by the code in minified script:

    navigator.accelerometer.watchAcceleration(a,h,{ll:40})}

    Because the restriction of New Phonegap Version:

    ----------------------------

    // New:

    var frequency = (options !== undefined && options.frequency !== undefined)? options.frequency : 10000;

    //Old:

    var frequency = (options !== undefined)? options.frequency : 10000;

  • Try Construct 3

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

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

    I have tried the R87 version. Using Phonegap Build it doesn't work until I tilt my phone for almost 10 seconds.

    Hope R88 or R88+ can solve this bug, I will stay focused on this problem and give you feedback.

  • Hi,

    I think this is a acceleration bug, and I tried to find the cause of the bug. Maybe it caused by the new version of phonegap.

    I export files and delete phonegap.js in the folder. Then zip it and upload to PhoneGap Build. In the apk file "phonegap.js" is a new version(1.6.1),then Touch.Beta and Touch.Gamma cannot work.

    I think there is no error in my project. Because I used eclipse to build a apk it can work.(phonegap.1.2.js and phonegap.1.2.jar).

    Compare cordova.js with phonegap.js(version 1.2 exported by R84):

    phonegap.js

    // Get acceleration

    exec(successCallback, errorCallback, "Accelerometer", "getAcceleration", []);

    cordova.js

    // Get acceleration

    PhoneGap.exec(successCallback, errorCallback, "Accelerometer", "getAcceleration", []);

    --------------

    My Project capx

    ------

    System -> Touch.Beta<"-100"

    Action: Monster -> Simulate 8Direction pressing Right.

  • thanks very much

  • If I use the cordova.js rather than phonegap 1.2 version, it can not work.

    what should I do? stay at the phonegap 1.2 version or change some code?

    thanks.

  • I changed cordova1.5 to phonegap1.2 then it works.

  • I have the same problem too.

    I use Phonegap and Touch.Gamma.

    My phone is also HTC Desire.

    Hope to solve this problem.Thanks.

  • 7 posts