labithiotis's Recent Forum Activity

  • Hi,

    Very quick question, how would I be able to use thisJSON data in c2 easily if possible. I have tried using Hash table and no luck (doesn't help that it's not clear how to use that plugin). Using an ajax request btw.

    [
     {
      productid: 1,
      venueid: 1,
      categoryid: 4,
      product_name: "Name",
      product_desc: null,
      image_thumb_url: "URL",
      price: 10,
      tax_amount: 0,
      tax_included: true,
      in_stock: true,
      popularity: 0,
      product_modifiers: [{modifierid: 1, price: 1},{modifierid: 2, price: 1} ]},
     {
      productid: 2,
      venueid: 1,
      categoryid: 4,
      product_name: "NAME",
      product_desc: null,
      image_thumb_url: "URL",
      price: 15,
      tax_amount: 0,
      tax_included: true,
      in_stock: true,
      popularity: 0,
      product_modifiers: [{modifierid: 1, price: 1},{modifierid: 2, price: 1} ]
     }
    ]
    

    p.s. I can't change the JSON structure, just want to loop through these and store in array, and for the modifiers if possible to attached another array or c2 friendly json/string.

    Was hoping just to use hash table but so far i can't get anything useful from it, the example files don't help :(

  • I can only confirm for iOS, I will get a friend to try android later this week (if i get time).

    Sorry I can't help further, when i get some more spare time i will make a test IAP capx but really its more likely something outside of the capx that's wrong.

  • Put them into another layout and set them to global. Now just create them in the loader/default layout from the sheet.

  • Ludei just tweeted "#WebGL on every Android and iOS device, for the first time ever! ow.ly/jpnCS #HTML5 #games #GDC2013"

    Now if they could just support Windows 8 Phone and Blackberry, so it's a single eco system <img src="smileys/smiley27.gif" border="0" align="middle" /> <img src="smileys/smiley27.gif" border="0" align="middle" /> <img src="smileys/smiley27.gif" border="0" align="middle" />

  • Sounds great but would this work in CocoonJS, as that doesn't have a url if i'm not mistaken?

    <font size="1">Note. This is my 100th post, woo badge :)</font>

  • https://developer.apple.com/news/

    Starting May 1, new apps and app updates submitted to the App Store must be built for iOS devices with Retina display and iPhone apps must also support the 4-inch display on iPhone 5. Learn about preparing your apps by reviewing the iOS Human Interface Guidelines.

    Not sure how many of us that effects but does mean you need to make sure you apps are responsive to fit the different aspect ratios and have minimum size of 640x960. Don't think letter box scale will pass as it just renders a black bar.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I should state I'm aware of almost all the work arounds for my suggestion but I don't want to use a "work arounds". These are suggestion I'd like to see but don't have any rush for them.

    You can cut and paste global variables between event sheets. C2 will give you a great big warning that any related actions will be deleted, but they are undeleted when you paste the global variable back in. It's a really confusing prompt.

    hh that is confusing, When it showed my actions disappear I panicked and undid :)

    > Have a system expression to convert a number into a comma/dot separated string ( 2000 -> 20,000) , with maybe settings for zero padding (i.e. 3)

    > url=http://www.scirra.com/forum/display-number-as-currency-with-commas_topic56968.html]This could be done in C2 know and use this plus other events for doing graphical scores. Just be a nice to have a native system expression.

    Ability to disable and includes like events & actions. (currently I can just delete and re-add it) did mean the Include:Sheet event (In Events Tab Add Include). You can select it but you can't disable it, as a quick way to turn of sheets. You can quickly disable action and event with the shortcut D too.

    5 - Snap to grid and set the grid to 1,1It's a nasty work around, but ta.

    7 - You can load an array with JSON and set the JSON code to load while you play the gamehat's no different to just setting data in by actions/loops. Plus its fiddly to edit.

    2_ There is already a "FPS" system expression, as well as "objectcount". already use ChromeConsole, its excellent and works on Windows 8 and CocoonJS which is very handy. Don't see the point of Debug Panel. I already use FPS too.

    But the reason I say I would like a debug option is mostly for Object Collision HitBox (mostly for touch) and Object ID's

    3_ You shouldn't use "wait 0.01" (I'm not sure it even works) and rather do your own timer based on dt.here's load of places where I have had to use "Wait 0.01" becuase the next sequence in the code is expecting something and without it, it doesn't work. Could be the way I do things as I use a lot of functions and maybe they're called before the data is set. For example I have a function called "Reset Data" that add blank entries to arrays and then calls function "Save Data" which add's array as json to webstorage. But if I don't have a wait 0.01 before "Save Data" it doesn't work. Also have another for "Load Data" that has a wait 0.01 after a Load from JSON ExtraExpressions.decode(WebStorage.LocalValue("data")), so when I set data of other arrays it works.

    Guess I could try using Wait dt, but still feel and wait tick would be nicer. (I'll update my code and see how it goes)

  • You do not have permission to view this post

  • Yer would be nice to attached capx instead of using dropbox which does result in a lot of dead links but means Scrria's got to folk out a lot of dosh to host all of them (ain't cheap).

  • Updated the first post as I got this working, have listed all the things I did to get it working.

  • R123.2 as done it <img src="smileys/smiley20.gif" border="0" align="middle" /> I now have popups with correct IAP information from apples store sandbox but with the tester account I am not getting on purchase complete triggers. Will investigate further before bugging you with it.

    Great job and thanks for adding this in so quickly, this is one GAINT step forward for making IAP work in C2 & CocoonJS.

    I can see the finish line! Woo

  • Ashley Great job! <img src="smileys/smiley20.gif" border="0" align="middle" />

labithiotis's avatar

labithiotis

Member since 4 Feb, 2013

None one is following labithiotis yet!

Connect with labithiotis

Trophy Case

  • 11-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

13/44
How to earn trophies