markstraw's Forum Posts

  • 6 posts
  • I have a file - pointValuesArray.json, which can be edited with the array editor.

    AJAX on "PointValuesArray" completed -

    Returned pointValuesArrayJsonObj json data from debug:

    {"c2array":true,"size":[2,13,1],"data":[[["A"],[2],[3],[4],[5],[6],[7],[8],[9],[10],["J"],["Q"],["K"]],[[1],[2],[3],[4],[5],[6],[7],[8],[9],[0],[0],[0],[0]]]}

    When I double click pointValuesArray.json, I get an editable table like this table -

    construct.net/en/make-games/manuals/construct-3/interface/file-editors/array-editor

    but unable to retrieve values.

    "PointValues A: " & pointValuesArrayJsonObj.Get(".A")

    returns 0

    I can see this JSON data in the debug, but unable to show this data in the consol and thus anywhere else - thus reluctant to delete it

    I also have a PointValues array object - but have no idea how to populate it with data - unable to figure out how to insert data into the array object.

  • > set PointsValue json from parse AJAX.LastData

    > Consol log PointValues.Get(".Value1")) - returns value of 0 - which is incorrect.

    Looks like your PointsValue object is a JSON object. It needs to be an Array object.

    You use "Array Load" (not "Parse") action to load the data, and Array.At() expression (not Array.Get()) to access it.

    Is a table created with this thing - construct.net/en/make-games/manuals/construct-3/interface/file-editors/array-editor <-- an array object?

    When I try write to consol: "PointValues value A: " & PointValuesArray.At(0,1)

    'PointValuesArray' is red - error message - PointValuesArray is not an object name.

    How do I make PointValuesArray.json an object?

  • If you mean the built in array file loaded into an array object then you use the array actions such as array.at(0,0). Also you can check in debug view if the array object is populated with the values as expected.

    Under file, I have PointValuesArray.json - an array table thing - is this an array object? - it can be edited in the Array Editor. It is populated with a few lines of data.

    I can't work out how to call array.at(0,0) on this data to use it in real life.

    I'm staring blankly at the manual -

    construct.net/en/make-games/manuals/construct-3/interface/file-editors/array-editor

    Am I missing a part 2 or is what I need to know somewhere on this page?

  • I have an Array object - pointValuesArray.json - an array created with built in array table and populate with some values.

    On start of layout, I request file pointValues.json and on completed, set PointsValue json from parse AJAX.LastData

    Consol log PointValues.Get(".Value1")) - returns value of 0 - which is incorrect.

    If I put same values in a flat json text file, calling this returns value as expected.

    What is wrong with my syntax for getting values from an Array or Dictionary table object?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I realised after researching a bit more, that Construct Animate is another programme.

    I had chanced upon Exporting image sequences with Construct Animate page through a internet search.

    I am already subscribed to Construct 3, and couldn't manage to batch export all the frames from a sprite animation using Construct 3 - original files deleted unfortunately. I saved a few of the images by selecting sprite frame in the sprite animater, ctrl + s > save frame to save individual frame image - but would have been too time consuming as it is 188 frames.

    The free version didn't allow export of an image sequence but did allows for 5 second video, which was perfect to retrieve the sprite animation.

  • Hello,

    I am on page: construct.net/en/tutorials/exporting-image-sequences-2888

    Page title: Exporting image sequences with Construct Animate

    Construct Animate provides an Image sequence export option that lets you export an animation frame-by-frame, with each frame in a separate image file.

    This is exactly what I need. However, the info is so vague to me that I can't work out how to do this.

    Is "Construct Animate" the sprite sequence in the sprite editor, or is it what is on a timeline? Or is it something else?

    I have a an image sequence in the sprite editor which I need to export as an image sequence.

  • 6 posts