xyboox's Recent Forum Activity

  • OK, thanks Ashley, so I did. I'll post back here the outcome of this.

  • Try Construct 3

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

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

    sorry to post in this closed thread, but it seems the most appropriate for my issue here:

    I have an app that plays sounds on press of a button ( one at a time ), and the app is being compiled with CocoonJS. The web version works just fine. However, when compiling and running as native, all the short sounds ( below 20 sec. ) ends up after just 4 or 5 seconds of play. Whatever sounds I play and they are longer then 20", they play just fine.

    In the Cocoon's app launcher debugger I see as the attached screenshot.

    Question: is this change from sound to music a C2 action or Cocoon's? And how/why is this affecting the playing of shorter then 20 sec. sounds?

    As a note, on iOS this doesn't seem to happen.

    Thank you!

    <img src="https://dl.dropbox.com/u/102498471/20121206133719.png" border="0" />

  • Thanks Ashley for the answer.

    It means the webview component is not an instance of the browser ( but a crippled one, am I right? ) since my animations run great when loaded directly into the same phone's browser.

    I just created an animation with more then 300 frames using EaselJS and even if the error is no longer thrown, the behavior is the same when compiled and run using any of phonegap, appmobi and cocoon. At least that proved it's not a C2 limitation but the phone's OS.

    So, will test on Android v. > 2.3.6 and iOS ( hopefully they don't have same limitations ).

  • Ashley, sorry to bring this back to discussion, but ... how about this:

    I tried to compile using first appMobi ( first using directCanvas, then using the webview ) with same results. Then I tried with Cocoon. Exact same result.

    Then, I reduced the frames in my animations to a little under 300 and... it works with all compilers: phonegap, appmobi and cocoon. I then started adding a few frames at a time, and as soon as their number is > 300, the same error is thrown for every method of compiling.

    However, it is not about the number of entities in the project, but specifically about the total number of images ( as animation frames ). I added sound files so that the number of objects passed well 300 and it still works as long as the number of items in "images" folder is < 300. Now, this might be because audio files are streamed ( maybe?).

    So... where this 300 come from? Who sets this limit?

    Thanks, any hint is welcome :)

    LE: if it matters, the code that throws the error in c2runtime.js is this ( inside the 'if' ):

    if (spritesheeted)

    {

       ctx.drawImage(cur_image, cur_frame.offx, cur_frame.offy, cur_frame.width, cur_frame.height, myx, myy, w, h);

    }

    Thanks.

  • This can not be a browser limitation since I have a game with ~700 images ( as animations frames ) and it plays OK on mobile browser ( Android 2.3.6 ), but can't compile using phonegap. I am not talking about exporting the C2 project for phonegap, but actually using that export into an eclipse phonegap compile, which throws the error ranma did mentioned.

    That leaves me no option but to think is a webview limitation. Now, my question: how come that the webview is different then the browser itself? Shouldn't be the same? Is there a way to overcome this limitation? How about using an expansion pack? Would that help ( if it's even possible )? In my case, reducing the files number from 700 to 300 is obviously ... not an option :)

  • Thanks KYATRIC. It does happen for post replays too, but only sometimes ( or maybe as you said in certain posts ). But for PM is ... always.

  • Every time I send a PM, at first it serves me a "Access denied" page, as in the attached screenshot. Then if I hit "back" in browser and re-submit, it works. Is it the same for everyone else?

    Thanks.

    <img src="http://img62.imageshack.us/img62/4963/screenshot3xn.png" border="0" />

  • Great stuff tap! Thanks once more.

  • Hey tap,

    I was just playing with the cookie object of appMobi plugin and was wondering... since there's a setCookie action, shouldn't there be also a getCookie? How could one read the value stored in a cookie? I know there's a getCookie in appMobi API, though...

  • This is fantastic tap! Eager to see it in action!

    Thanks!

  • Hi tap,

    any updates regarding IAP ( 1touch ) implementation in C2 plugin?

    Thanks!

  • Thanks R0J0hound, but I believe this would ensure a dynamic built path ( which is also very useful! ). Maybe I wasn't clear enough earlier: I need to remove and/or add elements to the string of sprites following the path, not elements of the path itself. The challenge would be to make space for the new come or to fill the gap made by the destruction of a sprite.

xyboox's avatar

xyboox

Member since 4 May, 2012

None one is following xyboox yet!

Connect with xyboox

Trophy Case

  • 12-Year Club
  • Email Verified

Progress

13/44
How to earn trophies