Toby R's Forum Posts

  • Ah Cocoon. This is also a common issue as I am aware. Just Google "cocoon black screen". There are some tutorials written by Andy regarding this issue.

  • I guess you use Official AdMob plugin + Cranberrygame Cordova AdMob library in Intel XDK? It happens sometimes with this set.

  • It has been mentioned many times already on the forum. I believe there are also tutorials, but it's not a tutorial which should be created but manual which should be updated.

  • If you really want to understand JS game development from the inside then my recommendations would be WebStorm IDE (https://www.jetbrains.com/webstorm/) + CreateJS library (http://www.createjs.com/).

    WebStorm is the best JS IDE you can find and CreateJS is very easy (yet powerful) library for Canvas and WebGL.

    But that's not visual. It's pure coding. Easy and pleasent but coding.

  • In Intel XDK you have to add Cranberrygame's Cordova lirbrary instead of Phonegap.

    https://github.com/cranberrygame/cordov ... -admob.git

  • Alright! Everything works now except "has product". This doesn't work no matter if I user index or product id. It looks like this function is simply corrupted. Anyway thanks to the "on product successfully purchased" triggered by "Restore purchases" I've managed to make a workaround for "Has product".

    So finally after several days of testing everything works. Thanks again

  • Thank you AndreasR! I will give it a try today. I think I would never guess that it's ordered alphabetically... I really thought it's something related to purchase order or market initialization . Thanks a lot.

  • Use local storage + timestamp.

  • Hi,

    Yes you are right. It triggeres the On purchase completes trigger instead of the 'has product'. Same is with the description/title. I did use the 'on completed' and 'has product' as 'or' block, so I haven't noticed that.

    Thank you!

    I'm building a testcase for Imanol, so this can be fixed.

    Actually it triggers "On purchase complete" instead of nothing. When I run "Restore purchases" I expect plugin just to download information to the memory and do nothing else. Then once "Restore purchases" is done I expect "Has product" (in Cocoon it's called "Is product purchased") to be able check if product has been purchased before or not.

    So to clarify:

    ### issue 1 ###

    Function: Restore purchases

    Current behaviour: It triggers "On purchase complete" for every product which has been purchased in the past.

    Expected behaviour: Download information about purchased products. Triggers nothing by itself.

    ### issue 2 ###

    Function: ProductTitle, ProductPrice (and other which requires Nth product parameter)

    Current situation: Require Nth product integer parameter

    Expected situation: Require Product ID string parameter (or documentation of how this should be properly used with Nth integer)

    I'm not sure whi Imanol is but I guess is someone from CocoonIO team? Could you please share the Cocoon forum issue report link here if you created any? Or should I do it?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Nice one! Simple yet original! Good Job you definetely have a reason to be proud

  • Well actually I need a hand There are weird things going on with my Cocoon IAP implementation.

    1. When I trigger "restore purchases", then it triggers "on product purchase completed" for every product which has been bought in the past.

    2. Even though I recieve a restore purchases successful message. "Has product" still returns false.

    3. CocoonInApps.ProductTitle breaks the script

    In your example you provide a Product ID (which is a string) as a parameter of CocoonInApps.ProductTitle. However description of this function says it has to be a number.

    I think this is why my script breaks. And maybe even all the weirdies happen.

    If you have IAP implemented in your working project. Could you please share your working implementation? Or point me to the tutorial/documentation? I can't find any official info regarding what the "Nth product" means. Is it Nth purchased product of all times or it's the sequence of products added to "Fetch products from store" or Nth of the current session or...?

    I would be greatful if you could clarify this.

    Thanks

  • Just added new tutorial: What is the best resolution for mobile game?

  • I wrote about that in my first e-book. Anyway just rewritten this chapter into my blog. You can find it here: What is the best resolution for mobile game?

  • Alright - sorry for bothering. I've managed to make it work!

  • Well first of all I think there is no game made in C2 that should be considered to run on such an old device which still has Android 4.0. Those oldies are simply not strong enough to run even an easy game smoothly.

    Regarding resolution. If you set up your layout and window to 854x480. You will cover only 16:9 devices. 21:9 will have blanks on the sides. 16:10 will have blanks on top or bottom.

    I had a customer with exactly this resolution and he had problems that the game was alright on most of mobiles but not on some tablets.