kizmeister's Forum Posts

  • 4 posts
  • I've sorted it now and you were absolutely right, it's a quote thing, thanks for helping me figure it out :)

    The fix was:

    • In the JSON file use quotation marks only for the text values
    • For integer values don't use quotations marks on the numbers at all

    So all that needed doing was deleting a lot of quotation marks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi, many thanks for taking the time to check out my issue :)

    I have managed to replicate the problem in a fresh blank project, using my original JSON file loaded into the dictionary via AJAX exactly as before - here is the google drive link for it: https://drive.google.com/file/d/1UBi2XNH8GLn-_oQmbOnOHvipaGOWKdf0/view?usp=sharing

    Something really odd happened further to this:

    I checked my JSON - the key exists and all quotation marks are there, but I noticed when viewing the JSON in C3's editor, there were none. I added some in the C3 editor view, but this returned a 0 when run. So I went back to C3's editor and removed the quotes I had just added - this then results in the code working as intended, no double trigger required! Is it just me or is that really quite odd?

  • Hi folks,

    Something rather strange happened to me. I'm trying to deduct 10 from a number stored in a dictionary object using the 'set-key' action.

    When I trigger this with a key press the first time nothing happens, on the second key press it works fine. (I've tested this in debug view many times)

    When triggered using a function it doesn't work at all.

    Anyone know what is going on here? Why would it need a double-input like that?

    using the int() is the only way I can get it to work at all.

    I've disabled all other events in the project to rule out anything else causing this, so I'm guessing I'm doing something wrong syntax-wise?

    Any help or general ideas on what might be going on would be much appreciated!

    Tagged:

  • Hi,

    I'm a certified Nintendo developer, currently working on two projects that I plan to bring to the Wii U. I've checked out your website and your work is good

    I'd be interested to know more about the kind of role you would be looking for in a team, at the moment I'm mainly looking for someone to help with the 2D art.

    I can't post my email here, as I've not got enough points, but you can find me on twitter: , or just pm me

  • 4 posts