blackcrypt's Recent Forum Activity

  • Just voted.

  • Somebody Upvoted!

  • NoiseStregth - x, set effect Noise param 0 to NoiseStrength

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It's a level data editor / save / load test project.

  • How do I get data from a local file that has NOT previously been imported into the C2 project?

    I'm currently using :

    AJAX Request "Filename.json"

    Array Load from JSON string AJAX.LastData

    This only works for a file that has previously been imported to the project. It's useless.

  • For those of us that don't have android can you explain the game a little?

  • Keyboard : I can run + jump going left, but I can't run + jump going right. That's quite annoying.

  • Excellent - Is it coded in Construct2?

  • Wow, I have been looking for game data save / load solution all week! I don't like the idea of webstorage - it sounds too temporary to me. I'll test it out though. I didn't know about FileChooser though.

    I don't really want the user to choose a file - I just need to be able to save several files in the root of the game folder - perhaps in a 'LevelPack' folder. I'm kind of working towards a good solution.

    Your topic helped. Thanks.

  • Valerien - thanks dude

  • > ...

    > And you need to fix your json file. You are missing quotation marks between your fruit names.

    > It will work once you fix those two things.

    >

    > ...

    >

    I already told you why it's not working. You can't expect people to just fix your issues for you. You need to learn why there's an issue and be able to correct it.

    Find your json file inside your project open it in notepad and add the missing quotation marks.

    Yes, I already did that - You'll notice that my json file is included at the top of my last post. I can expect people on a community forum to help and sometimes just look at the 'code' and fix it so I can see what's wrong at my end. Those that don't want to do that can opt to NOT reply. Perhaps you fall into the latter group?

    I have also minified the FruitNames.json file contents to be extra sure!

    {"c2array":true,"size":[10,1,1],"data":[[["Apple"]],[["Banana"]],[["Cherry"]],[["Pepper"]],[["Grapes"]],[["Pumpkin"]],[["Star Fruit"]],[["Strawberry"]],[["Tomato"]],[["Peach"]]]}[/code:drdmpi7m]
    
    So, as it stands, I have done everything that I think I should have done, but the fruitnames still do not appear - the array is empty.
    
    [EDIT] Problem solved - and it was simply a case of re-importing my FruitNames.json file into the project. I assumed (wrongly) that the file was retrieved at runtime from disk.
    
    [EDIT] I have also noticed that beautfied json does not work in C2.
blackcrypt's avatar

blackcrypt

Member since 7 Jan, 2015

None one is following blackcrypt yet!

Connect with blackcrypt

Trophy Case

  • 9-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

11/44
How to earn trophies