How do I get the Z width of a specific xy Array position?

0 favourites
  • 3 posts
From the Asset Store
Supports 1D, 2D, 3D arrays. Import and export arrays in JSON format
  • Hello,

    i have a 3 dimensional array like this:

    		["Brüche zu Dezimalbrüchen 1","Mathe","Dezimalbrüche"],
    		["Geometrische Flächen","Mathe","Geometrie"]
    How can i get the "depth" of i.e. "Geometrische Flächen"
    how can i get the "height" of i.e. "Students" ?
    Is there a possibility to do sth. like this: myArray.At(0).lengthor myArray.At(1,1).length.
    Thank you
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The z depth of any given x/y will always be the same as the total depth of the array, even if there is no data in the cells. An empty cell will contain 0 though, so you can make a function loop to check how many cells in that particular row/column are not equal to zero and return the result.

  • May i suggest the 3D Dictionary plugin by Kevin Khantzis ? It is heaven to work with.


Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)