tecbug's Recent Forum Activity

  • WOW. Big thanks!

    The code looks like a magic I'll try to analyze it step by step.

  • Thak you all for replies.

    Especially Magistross - your example is incredibly helpful. I've changed expression newline to "," to separate elements by commas despite new lines.

    I have one problem with it, when I change JSON into:

    {"otherData":"not important","otherData2":"also not important","status":0,"playerData":{"name":"john","surname":"sesese","age":66}}[/code:108btinh]
    there's problem with reading nested data (eg. "name").
    
    --edit--
    And here is working example (with commas but without nesting): 
    [url=https://dl.dropboxusercontent.com/u/17601731/forum/parse_v2.capx]https://dl.dropboxusercontent.com/u/176 ... se_v2.capx[/url]
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • - Do you mean Hash Table plugin ()?

    Joskin - I understand. But to import JSON into array I should have "{"c2array":true,"size":[10,2,1]" and i should have an array with predefined size.

  • Index isn't fixed. Could you please explain in little more detail how to use foreach on JSON?

  • I'd like to parse JSON like this:

    {
    "otherData":"not important",
    "otherData2":"also not important",
    "name":"john",
    "status":0,
    "otherData3":"also not important",
    "otherNumber":666
    }
    [/code:2uifpw4b]
    And I'd like to:
    1. find and retrieve value for key "name" (it should be "john") and save it as variable
    2. find and retrieve value for key "status" (it should be 0) and save it as variable
  • It works :)

    Thanks.

  • You can request fullscreen on startup with node-webkit.

    Unfortunately there is only option to maximize the window. When I export to EXE with node-webkit, after maximizing the game it still has the top bar and the bottom bar (with tray and opened apps).

  • If I set "Fullscreen in browser" to "Off" the ads don't show up. All other options works fine with ads.

  • Thank you very much :)

  • Hi,

    I'd like to make interactive product catalog. Part of its functionality is to enable users to download files on his HDD/SSD. I'd like to provide C2 an URL to this file and user should download it via C2.

    How to do it and what plugins to use?

  • Is there possibility to make a game that is sending POST message to the server and then receiving XML file and then parsing it?

    What plugins should I use and are there any examples?

    --edit--

    I see that plugin scirra.com/forum/plugin-ajaxpost_topic49039.html enables sending POST, but how to get back XML. How it usually works?

  • Thanks. I finally managed to open it. After 10 installations of different versions of C2 and all plugins.

tecbug's avatar

tecbug

Member since 30 Oct, 2008

Twitter
tecbug has 3 followers

Trophy Case

  • 16-Year Club
  • Popular Game One of your games has over 1,000 players
  • RTFM Read the fabulous manual
  • Email Verified

Progress

19/44
How to earn trophies