foxpawgames's Forum Posts

  • 3 posts
  • Hello again!

    Sorry for the second post of today, but I'm completely stumped.

    I have a dictionary that is being fed from an external file via AJAX, that works perfectly now. This file contains 15 names that are stored in 15 keys. When I run my layout it creates 12 instances of one sprite and sets an instance variable called "name" for each and that works fine. However, what I would like to do is once the sprite has been named, I would like to remove that name from the dictionary so there won't be any duplicates.

    Here is the block of events that spawns all the objects and assigns the instance variable.

    Once again, I apologize for the second post and thank you in advance,

    Jack.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Brilliant! Thank you very much!

  • Yo!

    I'm currently working on a little test that loads a dictionary with some names using JSON data. The data works fine if I put the contents of the file in the field. However, when I try using AJAX to read the file from the project directory it doesn't work.

    Here's the code that should tell AJAX to read the file and then once finished, put it in the dictionary. I have the file imported within Construct 2. Also when debugging, the data shows up within AJAX as LastData.

    Here's the dictionary JSON file that I'm trying to use. Like I said, it works if I copy this into the "Load from JSON" field.

    Am I missing something simple?

    Thanks in advance!

    Jack

  • 3 posts