emoti's Forum Posts

  • 4 posts
  • Greetings, im trying to do some stuff with dynamic data from a AJAX php site this is my json result:

    [quote:stm96qa5]

    {

    "c2array": true,

    "size": "[1,2,10]",

    "data": [ { "nombre": "John Smith", "puntos": 100 }, { "nombre": "John Smith", "puntos": 200 }, { "nombre": "John Smith", "puntos": 300 }, { "nombre": "John Smith", "puntos": 400 }, { "nombre": "John Smith", "puntos": 500 }, { "nombre": "John Smith", "puntos": 600 }, { "nombre": "John Smith", "puntos": 700 }, { "nombre": "John Smith", "puntos": 800 }, { "nombre": "John Smith", "puntos": 900 }, { "nombre": "John Smith", "puntos": 1000 } ]

    }

    Im trying to add this to an array using this:

    [quote:stm96qa5]On Ajax completed: Array - Load from JSON string AJAX.LastData

    On debug i can't see anything loaded to my array

    What im doing wrong ?

    If anyone can upload a .capx example with an ajax to array i appreciate it.

    Thanks

  • Is extremely complicated to understand a long process like that, isnt there a plugin or something to easy read the JSON data without altering my php script ?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Greetings, im struggling so hard with this, i read all kind of tutorial, guide and documentation but still can't save JSON data on variables. On the Debug my Dictionary returns "v" and "t" as 0.

    I have the following data:

    {"v":999,"t":"3c95aec4c43ea1502c3700f846aa82d0"}[/code:92crdsg1]
    
    Here is what im doing,
    [img="http://i.imgur.com/GfI5RfU.jpg"]
    
    I just need a easy way to do this.
    What im doing wrong ? Thanks !
  • Hello everyone, im developing some very good games with Construct for a while.

    Now i have a problem, someone knows how to edit the score variable to submit a higher score value.

    My score submit php is using a sha1 hmac hashing, so is more hard to hack, but by just editing the variables its easy for the game to encrypt that edited score and submit it.

    How can i improve the security on score / life or any kind of variable ?

    Thanks and have a nice day !

  • 4 posts