FilipWozniak's Forum Posts

  • [quote:1p1fp8va]You are trying to load ajax.lastdata before the Ajax is completed..

    I'm sorry. I didn't notice a stupid mistake. You're right!

    Now .json file is loaded when AJAX does his job.

    But "Set Text JSON.Value (0, "19141338")" is not working. JavaScript - OK, but the program still shows "undefined" property.. So close!

  • It's look like this.

    Chrome sends an error message. It's probably JavaScript thing (browser suggesting that, so this may be the plugin or behavior) and the program returns "undefined" property..

    I have no idea!

  • jasminm Thanks for help, but I want to do it dynamically , directly in the Construct 2.

    ramones Yes, I installed the plugin, but it seems to me that it doesn't work..

    What if I want to write the name of player not using his ID, but only by name tag?

    I plan to make an application that after entering a player's name will automatically download the Riot API information - all statistics and rest of the stuff, you know.

    Could someone show me how to use this plugin (on .capx)? One small example. The rest I will do likewise.

    Thank you very much!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • {"19141338":"vagrant8"}

    I do not know how to do this, really!

    I read a little bit about using a dictionary and arrays, but I stuck at this point..

    Could you show me on example (.capx) how to draw values that interest me? Help me, please!

    Only one example (not all values). I need it.

    Thanks a lot one more time!

  • Hello guys!

    I have a question. It's very important. I'm just starting my adventure with Construct 2, but already I came across a pretty big problem that I can not solve.

    As you know, the League of Legends has it's own API.

    After generating a URL, it looks like this:

    {"micheal23":{"id":40904801,"name":"Micheal23","profileIconId":26,"summonerLevel":1,"revisionDate":1363260127000}}

    That is what server returns (.JSON file? - I think so.. Tell me if I'm wrong)

    I want to choose specific data (but dynamically) - ID, USERNAME, PLAYER'S LEVEL and place it in Construct 2. The only question is how to do it?

    I tried to use Ajax, but he asks me the value of parentheses and apostrophes, and I want to make it look less like this:

    ID: 40904801

    Name: Michael23

    Level: 1

    I just want to put a clear informations to textbox in C2. Please help. I found a few plugins ("How to read the .json file"), but I want to do it dynamically from League of Legends server (to use what data request give me back).

    Thanks!