blackcrypt's Recent Forum Activity

  • {
        "c2array": true,
        "size": [10, 1, 1],
        "data": [
            [
                ["Apple"]
            ],
            [
                ["Banana"]
            ],
            [
                ["Cherry"]
            ],
            [
                ["Pepper"]
            ],
            [
                ["Grapes"]
            ],
            [
                ["Pumpkin"]
            ],
            [
                ["Star Fruit"]
            ],
            [
                ["Strawberry"]
            ],
            [
                ["Tomato"]
            ],
            [
                ["Peach"]
            ]
        ]
    }[/code:28r9ycza]
    
    As you can see below, I tried both [b]Load from JSON string AJAX,LastData[/b] - and by using the tag - neither seems to work.
    
    [img="http://i445.photobucket.com/albums/qq178/blackcryptclan/ScreenShot_zps5f70e154.png"]
    
    Then after using Download as JSON data with filename "test.json" the file contains...no fruit names   
    
    [code:28r9ycza]{"c2array":true,"size":[10,1,1],"data":[[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]]]}[/code:28r9ycza]
    
    Something is not working and I don't know why - I've done everything I know.
    
    This is why I suggested someone might like to download the capx and fix the issue so I can see what I did wrong.
  • Thanks guys, but this already got fixed - see last entry on page one!

    But if you are in a helping frame of mind I have another topic that seems to be invisible to most forumgoers...

  • Thanks for your answers, but I don't want to detect when a key was released - this would assume the key has been pressed already - also I think 'released' is a one shot test which will only trigger after the key has been pressed - acts as a kind of trap - the action will only occur after you lift your finger and not as soon as you press the key. The difference being that one way will act like autofire and the other would require continuous tapping of the key - I want the autofire behaviour - I care about the finger joints of my users

    I'm still searching for a way to implement the logic...

    If the player is pressing the left arrow - OR - the right arrow then set gravity to 0 - ELSE - set gravity to 5.

    Ok, I sussed out what the issue was - and it was the difference between Pressed and Down.

    When I used If key is pressed I get a little green arrow next to the event and I'm unable to place an Else event directly after it - I switched to Key is down and bam! I can pop the ELSE right in there.

    Can I just say thanks for taking the time to reply to my post, but I don't think adding extra events to solve a problem is the way forward especially as the issue was my lack of understanding of the event system (maybe just where pressed / down are concerned maybe).

  • I will still have to test for the keyboard press which is a triggered event - the ELSE just is not logical there because it will never be run because that part of the code will ONLY be 'run' when a key is pressed, That's what the little green arrow means.

  • I get the same 'not valid here' if I put it under 11 (as event 12).

  • I can't get it to work. I read all the relevant stuff in the manual but the manual doesn't tell you how to achieve these things from a UI perspective - ie 'click this and drag it there'.

    I want to achieve :

    If left or right key is pressed set gravity to 0 ELSE set gravity to 5.

    I know that Else can't go there because it can't go under a triggered event, but how do I achieve this? How do I make the keyboard detect a non-triggered event?

  • I was going to ask how he got his theme like that - looks cool.

  • Apologies for the self-bump, but can someone please have a look at my capx?

  • He's asking for a top-down rain effect, which makes me feel a little silly after making a tutorial for him - https://www.scirra.com/tutorials/1368/rain-splash-effect - perhaps it will help someone else.

    I'll have a think about it and see if I can add a top-down effect to my tutorial.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm still having trouble working out how to load / save game data locally - not the game state - just bits and pieces of data such as level data.

    I cannot believe this essential requirement of modern games is such a chore!

    OK, I made a demo program to help you work out where I am falling down. Please remember this is NOT a game - it's just an example program to get multiple sheets of data from an array to my hd and back again.

    In this example there is no way to place fruits on the sheet - I'm currently only worried about the FruitNames array - I think I am doing the right things to load the array from a json file - but the fruit names do not appear where they are supposed to - I just get a "0" instead.

    Anyway, If someone could look at my capx and maybe fix it up so the selected fruit name appears above the pallete panel (on the right). The fruit name must have been retrieved from an array that was previously saved to disk.

    Note : Pressing 'S' or clicking on the save icon will 'download' the FruitNames array to test.json. I did that to test whether the array is getting the names from FruitNames.json. It isn't

  • If you are just starting out I assume you are not planning to release your game for money. Just look around the internet for images for now. The images you use at this stage don't have to be super-awesome. It's a breeze to change them later anyway - get your game mechanics sorted first <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink" />

    goo.gl/qyn4HF

    • or -

    opengameart.org/art-search

  • I can't believe that there are no means to save and load level data into a construct program!

    Please help?

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