Toddler's Forum Posts

  • This is the JSON:

    {"Row":[{"id":"1","Item_Name":"Bushfly","Image_Path":"Monsters/Bushfly.png","Quantity":"1", "Description":"It's a Monster.","Seller":"Mr. Garrison","Star_Cost":"1","Category":"Monster"},{"id":"2","Item_Name":"Jebbie","Image_Path":"Monsters/Jebbie.png","Quantity":"1", "Description":"","Seller":"","Star_Cost":"1","Category":"Monster"}]}

    I have this JSON on a String variable, now how do I get from this JSON Row[1].Item_Name ?

    Thanks

  • Thank you, but what if during "on Create" some items in the container are not created yet ? Like for example there are five controls and the first control was JUST created and inside its onCreate Code, there are codes to control the position of everything else in the container but in that nano second, they are not yet created ?

  • How do I get container to respect the items position ?

    When I instantiate the a container with the items, they are ALL in the center of the container.

    When I try to duplicate them in a loop, and try to move all the items to their respective relative position, the WHOLE container move !

    How do I get container to either:

    1: Create the Container instance with all the item's position in place like every OOP program out there.

    or

    2: Move the individual items inside the container wihout the whole container moving ?

  • Oh....what would be the proper format ? Can you format it for me as an example so that I can fix the output ?

    I use php to manually string up this JSON so with your guided example, I will be able to correct it

  • I look forward to it.

  • {"Row":{"id":"1","Item_Name":"Bushfly","Image_Path":"Monsters/Bushfly.png","Quantity":"1", "Description":"It's a Monster.","Seller":"Mr. Garrison","Star_Cost":"1","Category":"Monster"},"Row":{"id":"2","Item_Name":"Jebbie","Image_Path":"Monsters/Jebbie.png","Quantity":"1", "Description":"","Seller":"","Star_Cost":"1","Category":"Monster"}}

    I am so stuck I can't even see tomorrow, so I loaded this data into a String variable.

    Construct 2 doesn't have a JSON object so I was hoping is there a way I could retrieve Row[1].Item_Name ? Result will be Jebbie since start from Zero.

    I really need help please someone help me.

  • Asmodean...YOU.....You are MY HERO!!!!!!! I am going to read up on Containers NOW!!!!!!!!!!!!

    Mimiste, yes, I was thinking of movieclip in Flash ;p

  • Hello Kali,

    No, Unfortunately that is not possible, imagine you have numerous grids that form a single entity and you have to duplicate that entity multiple times, with Object Orientated Programming, all you have to do is to make them all into a Single Class/Object and then just instantiate their single Object.

    And with OOP, that object will have its own on create function !

    And its own Update function so that it will be able to take care of itself !

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Will the day come when it is possible for a group of object to be grouped into a single object with it's own on start and update function ?

  • Wow, nobody in the history of Construct 2 wanted to center two objects with a single click other than the both of us

  • Can we have an Align option that aligns two objects ?

    Not just Left, Right, Top Bottom, but Center ? And while we are at that can we have an Align Center [Horizontal Only] or [Vertically Only ?]

    PS: Can we also have a "Clear all Tile" button for the tile editor that will clear off all the sprites for that Tile Object for that Layout at hand ?

  • Thank you.

    I am just surprise there isn't a way to do this, Flash/Photoshop have it.

  • I have two objects on top of one another, different width.

    How do I center them ?

    I see no options for that.

    No I don't want to center them to a layout, I want to center them to each other.

    Better yet, have the option to center one object to the horizontal center of another.

  • Awe, cute respond

  • Can you try ?

    Put the Progress bar in Construct 2 and preview on your iPad, do you see the Progress bar Control ?